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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
CamronBute
Frequent Visitor

Finding generated query against XMLA endpoint in Query Diagnostics

I am trying to build a query against an existing Power BI report so I can run it in another application.

 

I connected to the XMLA endpoint for the existing report and have applied some steps in Power Query. I used Query Diagnostics to see if I could see what the final, folded query was against the endpoint, but all the values in the "Data Source Query" column are blank.

 

How can I see the query that's being sent to the endpoint?

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @CamronBute 

If you apply any transformation in Power query, it can show some information after enabling Query Diagnostics.

Please refer to the details how to record diagnostics:

https://docs.microsoft.com/en-us/power-query/recordingquerydiagnostics

 

"I connected to the XMLA endpoint for the existing report",

based on my knowledge, to use XMLA endpoint in Power BI means to use tools below to connect to power bi datasets.

https://docs.microsoft.com/en-us/power-bi/admin/service-premium-connect-tools#data-modeling-and-mana...

This behavior may not genarate dianostics logs.

If you use SQL server tools, you can run SQL Server profile to capture what queries runs when connecting to power bi dataset.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @CamronBute 

If you apply any transformation in Power query, it can show some information after enabling Query Diagnostics.

Please refer to the details how to record diagnostics:

https://docs.microsoft.com/en-us/power-query/recordingquerydiagnostics

 

"I connected to the XMLA endpoint for the existing report",

based on my knowledge, to use XMLA endpoint in Power BI means to use tools below to connect to power bi datasets.

https://docs.microsoft.com/en-us/power-bi/admin/service-premium-connect-tools#data-modeling-and-mana...

This behavior may not genarate dianostics logs.

If you use SQL server tools, you can run SQL Server profile to capture what queries runs when connecting to power bi dataset.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you, @v-juanli-msft. I was able to use the SQL Profiler to get the folded query text sent to the server.

As a note, it's important to specify the database name when connecting to the server, it does not suffice to use a filter on the trace itself.

Maggie, as specified above, I have enabled Query Diagnostics. In the resulting logs, the "Data Source Query" column is not populating. This column would normally contain text sent to the server.

 

Thank you for the recommendation to use SSMS. I will give that a try.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors