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
RG007
Helper II
Helper II

How to see Relational SQL generated by Power Bi Report.

Hi,

 

when ever  I create a report using SQL Server or Oracle or any other database in direct query Mode, then how can I see what is the SQL/Query generated and send to database by Power bi/my report.

I don't have access on database level to see the sql it ran.

also how to see what is SQL genereted in case of import mode.

Thanks

6 REPLIES 6
amitchandak
Super User
Super User

@RG007 , there is an old discussion on the same- refer this -https://community.powerbi.com/t5/Desktop/Check-generated-SQL-query/td-p/156494

Also video from guyinacube- if that can help -https://www.youtube.com/watch?v=eVDIHG4dflM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

My question is different, I don't want to see query of a table, I want to see query for visual I have created on report  page....Thanks

hi @RG007 

To see the query when you open/interact/refresh a direct query report, you need to use SQL Server Profiler tool to get it.

see more details as below:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#determining-the-que...

 

Regards,

Lin

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

this way I get DAX query, but I wanted to see corresponding relational query, that would have generated , if it was live connection, that query received by database.

hi  @RG007 

There is a SQL query in it too.

7.JPG

 

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#understanding-the-f...

 

 

Regards,

Lin

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

In Power Query , you can right-click the Steps of the query and choose View Native Query.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.