Hi Felix Rijnvos,
You can achieve this in 3 methods,
2.Using the Excel Export Module with the Excel Export template configured. Reference Links,
https://docs.mendix.com/howto/integration/using-the-excel-exporter/
In the Highlighted section you can apply your xpath query based on the approval level
3.Using the OQL Queries you can extract the required data in CSV file. Reference application. https://marketplace.mendix.com/link/component/66876 https://service.mendixcloud.com/p/OQL
Thanks!