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
tondeli
Advocate I
Advocate I

How to track live connection queries that users run?

Due to regulatory compliance we need to track queries that our end users run using live connections to our SQL database or SSAS. For example we need to see if user has filtered report with specific values or if any of the users has filtered report using specific value.

 

Should we do this in SQL side or should we use on-prem gateway logs which do you guys prefer?

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @tondeli,

 

You can use native query option in Power BI Desktop to check undelying sql query.The actual SQL query for a set of steps can be obtained by selecting the last step in Query Editor, and choosing View Native Query from the context menu.

 

Alternatively, Power BI Desktop logs events during a given session to a trace file called FlightRecorderCurrent.trc. You can use SQL Server Profiler tool to open this file and check the corresponding SQL query. The trace file can be found in the AppData folder for the current user. 

\<User>\AppData\Local\Microsoft\Power BI Desktop\AnalysisServicesWorkspaces

 

Best regards,

Yuliana Gu

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

Does this work only with PBI Desktop? How about end user queries from PBI service?

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