This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi All,
Is there any way to get SQL query for the report I run in Power Bi Desktop. ?
Or Is there any way to convert DAX query into SQL based query so that it becomes easier to debug. ?
Regards,
Akash
Solved! Go to Solution.
You cannot get SQL from DAX as it's a very different thing.
I don't think this is what you want but you can get to see the query from M (Query Editor) if you've imported a table and applied some filters.
It is possible to get the dax queries using SQL Profiler, but this is quite advanced stuff. Here is an example for tabular SSAS and Powerbi can be connected to in a similar way.
http://mdxdax.blogspot.co.uk/2011/12/dax-query-plan-part-1-introduction.html
I tend to build simple tables of all my columns and filters while I'm testing my model, then discard when I'm happy with everything,
Its key to test measures at a variety of different levels as this is where things can go wrong.
For help with DAX here are some good sites.
https://www.youtube.com/watch?v=klQAZLr5vxA
https://www.sqlbi.com/topics/dax/
https://powerpivotpro.com/2014/10/5-common-mistakes-made-by-self-taught-dax-students/
You cannot get SQL from DAX as it's a very different thing.
I don't think this is what you want but you can get to see the query from M (Query Editor) if you've imported a table and applied some filters.
It is possible to get the dax queries using SQL Profiler, but this is quite advanced stuff. Here is an example for tabular SSAS and Powerbi can be connected to in a similar way.
http://mdxdax.blogspot.co.uk/2011/12/dax-query-plan-part-1-introduction.html
I tend to build simple tables of all my columns and filters while I'm testing my model, then discard when I'm happy with everything,
Its key to test measures at a variety of different levels as this is where things can go wrong.
For help with DAX here are some good sites.
https://www.youtube.com/watch?v=klQAZLr5vxA
https://www.sqlbi.com/topics/dax/
https://powerpivotpro.com/2014/10/5-common-mistakes-made-by-self-taught-dax-students/
The latest Dax Studio has a way of capturing the DAX code for debugging.
All is explained in this video.
https://www.sqlbi.com/tv/dax-studio-2-7-improved-debug-experience/
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 28 | |
| 22 | |
| 22 |