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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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