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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
EllenHeijmans1
New Member

Problem with visual query in Microsoft Fabric

I created in Microsoft Fabric a visual query. I added the tables dimProduct and FactInternetSales and merged them (see image). 

 

When I click View SQL or Save as View, I only get to see the select statement for the first table. Even when I click HighLight related queries or select the very last step.

 

It doesn't matter whether I start with dimProduct or factInternetSales. It only shows the SQL-code of one table and not of the combination of both. 

 

Can anyone shed some light on this? It must be possible to see the SQL code of all the steps.

 
VisualQuery.png
 
1 ACCEPTED SOLUTION
suparnababu8
Super User
Super User

Hi @EllenHeijmans1 

 

You need to enable your FactInternetsales Query shoild be active. Then only you will be able to save SQL query with all steps. Please follow below steps.

 

Now in the below image gold_customer is highlighted with blue border.

suparnababu8_0-1755685768051.png

Now I perfomed the join and did some transformations, you can see Merge Query. Now right click on the Merge and selelct enable.

suparnababu8_1-1755685863396.png

Now you will see Merge is highlighted with blue background color.

suparnababu8_2-1755685916304.png

Now click on View SQL/Save as view you can see the full scripti of final query.(Merge in this case)

suparnababu8_3-1755686024656.png

Now fro here you can see only the table with load enabled selected will show the corresponding SQL script.

 

You will not able to see all steps perfomred under the visual query. It's known limitation from Documentation. Pls refere teh below 

suparnababu8_4-1755686168369.png

Please go through this thread Query Using the Visual Query Editor - Microsoft Fabric | Microsoft Learn

 

Hope you are clear now. 

 

let me know if it helps you!

 

Thank you!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

 

 

View solution in original post

3 REPLIES 3
EllenHeijmans1
New Member

I don't know what I am doing wrong. I put two tables on the visual query and choose Merge Queries as New. I clicked Enable Load. But still I see the SQL of 1 query. I can even, when I click the plus and choose Group By, choose columns from the dimProduct table.

 

Steps.pngSQL.png

Hi @EllenHeijmans1 

 

After join, you can do any trasformations and try to save it as SQL query.

 

Note: Transofrmations will not be recorded in SQL query.

 

Pls try in this way and let me know.

 

Thank you!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

suparnababu8
Super User
Super User

Hi @EllenHeijmans1 

 

You need to enable your FactInternetsales Query shoild be active. Then only you will be able to save SQL query with all steps. Please follow below steps.

 

Now in the below image gold_customer is highlighted with blue border.

suparnababu8_0-1755685768051.png

Now I perfomed the join and did some transformations, you can see Merge Query. Now right click on the Merge and selelct enable.

suparnababu8_1-1755685863396.png

Now you will see Merge is highlighted with blue background color.

suparnababu8_2-1755685916304.png

Now click on View SQL/Save as view you can see the full scripti of final query.(Merge in this case)

suparnababu8_3-1755686024656.png

Now fro here you can see only the table with load enabled selected will show the corresponding SQL script.

 

You will not able to see all steps perfomred under the visual query. It's known limitation from Documentation. Pls refere teh below 

suparnababu8_4-1755686168369.png

Please go through this thread Query Using the Visual Query Editor - Microsoft Fabric | Microsoft Learn

 

Hope you are clear now. 

 

let me know if it helps you!

 

Thank you!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

 

 

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.