Forum Discussion
View SQL query in direct query mode
OneWithQuestion,
Go to C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Profiler\TraceDefinitions, you can find that the version of Analysis Services TraceDefinition xml file is 14.0.0, and this is the highest version of the file in SQL Server.
However, the trace file generated by Power BI Desktop requires Microsoft Analysis Services TraceDefinition 15.0.0.xml, thus you get the above error.
There are two workarounds for you solve this issue.
1. Use December update of Power BI Desktop to connect to your data source, the trace file generated by the version can be opened in your SQL profiler.
2. Use native query option in Power BI Desktop to check undelying sql query.
Regards,
Lydia
To clarify on Native Query: That only works for the ETL stage right? When I an viewing the edit query screen and seeing the "raw data tables" returned and the various steps from the source (like renaming columns, adding calculated columns etc...)
How can I view the "native query" for a table on the visual designer?
In my scenario I am placing a table on the visual layout page and adding a filter and want to see what query it is sending back?
Second question:
WHY is PowerBI using a version of profiler that is not available?
Where do we get that XML 15 definition?
- Anonymous8 years agoNot applicable
OneWithQuestion,
We are only able to view Native query in Query Editor of Power BI Desktop.
In addition, regarding to the XML 15 definition issue, I will consult it internally and post back.
Regards,Lydia
- Anonymous4 years agoNot applicable
Any progress on this? Using SQL Server Profiler 18 and opening traces from Power BI gathered via XMLA endpoint throw the error "Unable to locate trace definition file"
- DataInsights4 years agoSuper User
To see the query that is generated for a visual, go to View --> Performance analyzer. Click Start recording, and Refresh visuals. Once the visual has been refreshed, click Stop. Then click Copy query and paste in Notepad++, etc. This query contains both DAX and SQL (for DirectQuery tables).
- dgolhiardi8 years agoFrequent Visitor
I copied the latest TraceDefinition on the folder "14.0.801" , changed the name to "15.0.0" and changed the first elements of the XML (major version ,minor version and build number) to 15, 0 and 0 respectively and I became able to open the .trc file
Hoped it help
PS: I really hope that next time we will have the proper xml version launched together with PowerBI, workarounds are not ok