the button used to be a macro that executes a query (exporting the result into excel)
this is the SQL code behind the query
SELECT [tbl_BPM accounts].[BPM account], tbl_individu.[N° Magnitude] AS D_PA, tbl_kpi_data.Source, tbl_kpi_data.[Accounting Doc Nr SI], Sum(tbl_kpi_data.T7000) AS...