Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract MDX or SQL query from excel pivot table

I have an excel file reading some data from an OLAP service. The query was constructed using the GUI. How can I obtain the corresponding MDX or SQL query that excel actually communicates to the OLAP server?

like image 387
Jáchym Avatar asked Sep 19 '25 11:09

Jáchym


1 Answers

You can do it through SQL server profiler. Just run the profiler on Analysis Services and run/refresh your query in Excel and you will see the MDX query in the profiler.

like image 192
vldmrrdjcc Avatar answered Sep 21 '25 06:09

vldmrrdjcc