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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
charlieclarke
New Member

View SQL Syntax

Hello

Newbie here

I would like to know how to view the SQL syntax behind a power bi visual specifically joins.

Many Thanks

Charlie

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@charlieclarke 

you can see tge psudo sql code : 

 

download dax studio . 

open dax studio

connect to your power bi file ( make sure that your file is open on the pc ) .

go to performance analyser . 

and click on the visual you want to inspect its sql code.  ( click on 2 ) >

Daniel29195_0-1709487119679.png

 

 

 

copy the code from here ;  using copy query,

Daniel29195_1-1709487178413.png

 

 

paste it into dax studio .  ( be sure to click on server timings and query plan ) and then run the query in dax studio,

Daniel29195_2-1709487245027.png

 

 

you will have the sql code in the server timings paanel .

 

Daniel29195_3-1709487375464.png

 

 

 

 

let me know if this helps. 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

View solution in original post

1 REPLY 1
Daniel29195
Super User
Super User

@charlieclarke 

you can see tge psudo sql code : 

 

download dax studio . 

open dax studio

connect to your power bi file ( make sure that your file is open on the pc ) .

go to performance analyser . 

and click on the visual you want to inspect its sql code.  ( click on 2 ) >

Daniel29195_0-1709487119679.png

 

 

 

copy the code from here ;  using copy query,

Daniel29195_1-1709487178413.png

 

 

paste it into dax studio .  ( be sure to click on server timings and query plan ) and then run the query in dax studio,

Daniel29195_2-1709487245027.png

 

 

you will have the sql code in the server timings paanel .

 

Daniel29195_3-1709487375464.png

 

 

 

 

let me know if this helps. 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.