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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to change SQL statement on an active Direct Query

Hello everyone,

 

I have created a connection to an Azure DB. I used an SQL but now I need to update it. How to change SQL statement? The area is gray and doesn't allow me to change it.image.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Open edit data transformation/edit query mode.

 

Right-click on table - Open the advance editor and check if the query is there.

 

Or check do you source there. Open the advance editor and check if the query is there.

 

Try to change there

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Open edit data transformation/edit query mode.

 

Right-click on table - Open the advance editor and check if the query is there.

 

Or check do you source there. Open the advance editor and check if the query is there.

 

Try to change there

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
Anonymous
Not applicable

Yes is there, Thanks

 

But, the syntax is a bit different from the SQL statement I added as there is this term #(lf) in front of several Selects and other elements.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.