Hello Davide,
You should add virtuemart_order_id and virtuemart_order_item_id to template fields so it is used for Group by fields. You can set these fields to unpublished so it is not included in export file. Run the export and let me know.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory