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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Direct Query - Synanpse Query Tracking/Monitoring

Hi , Is there a way we can track SQL query fired by Power BI which is built on Direct Query Mode in Synapse ? 

Is it possible to tag a label for queries to genereated by Power BI?

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

Hi @Anonymous ,

 

First find the port number of the related .pbix file via below:

https://www.biinsight.com/four-different-ways-to-find-your-power-bi-desktop-local-port-number/

Then connect to sql profiler with the port number to trace queries.See below:

https://insightsquest.com/2017/05/07/profiler-trace-for-power-bi-desktop/

In sql profiler,there're existing tags for the queries in Power Bi.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

First find the port number of the related .pbix file via below:

https://www.biinsight.com/four-different-ways-to-find-your-power-bi-desktop-local-port-number/

Then connect to sql profiler with the port number to trace queries.See below:

https://insightsquest.com/2017/05/07/profiler-trace-for-power-bi-desktop/

In sql profiler,there're existing tags for the queries in Power Bi.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

Thanks for Checking. Running the belwo query on the Data warehouse will give the recently sent Power BI querries to the DW. 

SELECT
request_id,
session_id,
status,
convert(date, submit_time) submit_date,
submit_time as submit_datetime,
convert(varchar(8), convert(time, submit_time)) as [submit_time],
convert(varchar(8), convert(time, start_time)) as [start_time],
--start_time,
end_compile_time,
convert(varchar(8), convert(time, end_time)) as [end_time],
--end_time,
total_elapsed_time,
[label],
error_id,
database_id,
command,
resource_class,
importance,
group_name
classifier_name,
resource_allocation_percentage,
result_cache_hit
FROM sys.dm_pdw_exec_requests
where command like '%$table%'
Order by submit_datetime desc

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors