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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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