Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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?
Solved! Go to Solution.
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.
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.
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 29 | |
| 23 | |
| 17 | |
| 17 | |
| 14 |