Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to find the .trc file of generated queries?

Hi 

 

I am trying to find generated native queries by PowerBI, I have a report currently build on a dataset

and I have enable the "trace" feature from Diagnostic option, however when I go to 

 

    C:\Users\username\AppData\Local\Microsoft\Power BI Desktop

 

I couldn't find related .trc file. 

 

Is there a straight way to review power bi generated (native) query?

 

Thanks

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

If your data sources support query folding, you may use 'View Native Query' option to review power bi generated native query.

 

In the Power Query Editor window, it is possible to determine when a Power Query query can be folded. In the Query Settings pane, when you right-click the last applied step, if the View Native Query option is enabled (not greyed out), then the entire query can be folded.

g1.png

 

g2.png

 

The View Native Query option is only available for certain relational DB/SQL generating connectors. It doesn't work for OData based connectors, for example, even though there is folding occurring on the backend. The Query Diagnostics feature is the best way to see what folding has occurred for non-SQL connectors (although the steps that fold aren't explicitly called out—you just see the resulting URL that was generated).

 

For further information, I'd like to suggest you refer to the document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Use DAX Studio to see the actual queries, including Query Plan and Server Timings.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors