Forum Discussion
Modify Power Query Connection? (SEP 2026 Update)
Hey all,
It used to be so that when you clicked on the Source, you would get the pop up and see your SQL query and be able to make changes to it. It's no longer the case after the update? Is it the same for everyone?
I have tried clicking 'View Data Source Query' but I am unable to modify it.
I can probably make slight changes in Advanced Editor, but the query isn't exactly 'human readable' - I can probably make a minor change, but if I need to make a bigger logic change, I used to be able to delete/replace entire query in the old pop up.
What am I meant to do now? or Am I missing something?🤡
Hi irisgenx ,
Are you in the new Power Query Experience? If you are you can always revert back to the previous one by turning off the option in the preview features and then trying to see if you are able to get the previous pop-up.
Concerning the M Code it's just a question of identifying the correct escape character so if you go to the Advance Editor or use the TMDL editor all of the #(lf) are the codes for a line break so if you on the editor change the code by selecting those value and hitting enter you should be fine.
Example below for SQL database but works in the same way for Snowflake:
Previous let Source = Sql.Database(".", "AdventureWorks2019", [Query = "select SalesOrderID,#(lf) SalesOrderDetailID,#(lf) OrderQty,#(lf) ProductID,#(lf) SpecialOfferID,#(lf) UnitPrice,#(lf) UnitPriceDiscount,#(lf) LineTotal#(lf)from Sales.SalesOrderDetail"]) in Source After change let Source = Sql.Database(".", "AdventureWorks2019", [Query = " select SalesOrderID, SalesOrderDetailID, OrderQty, ProductID, SpecialOfferID, UnitPrice, UnitPriceDiscount, LineTotal from Sales.SalesOrderDetail"]) in SourceYou can also just get you query from your SQL editor if you already have it and replace the entire code that is on the advance editor just be carefull to keep it inside the quotation marks to be text.
One best practice I picked up is to add a step before the SQL source with my code and then pick it up in the Source step this gives me two main advantages:
- I can check the code at any time because it's a step on power query
- Easy to edit because in advance editor you format has you need
For the same Query this would look like this:
let SQLCode = " Select SalesOrderID, SalesOrderDetailID, OrderQty, ProductID, SpecialOfferID, UnitPrice, UnitPriceDiscount, LineTotal From Sales.SalesOrderDetail ", Source = Sql.Database(".", "AdventureWorks2019", [Query = SQLCode]) in SourceTMDL Editor:
Regards
Miguel Félix
5 Replies
- ibarrau
Super User
Hi. I think there is a known issue with the last version that can't change source:
If you can go back to august version or ask a mate with that last version, that should help you until they fix it.
I hope that helps,
- irisgenxNew Member
Thanks so much ibarrau - that link is pretty useful. Unfortunately, I cannot revert the version as the installation is controlled by the enterprise, all our versions have been updated. The workaround I have found is to create a new connection with Snowflake, and then replace the entire m code for the old query. 🤭
Hopefully they patch this up soon!
- MFelix
Super User
Hi irisgenx ,
Are you in the new Power Query Experience? If you are you can always revert back to the previous one by turning off the option in the preview features and then trying to see if you are able to get the previous pop-up.
Concerning the M Code it's just a question of identifying the correct escape character so if you go to the Advance Editor or use the TMDL editor all of the #(lf) are the codes for a line break so if you on the editor change the code by selecting those value and hitting enter you should be fine.
Example below for SQL database but works in the same way for Snowflake:
Previous let Source = Sql.Database(".", "AdventureWorks2019", [Query = "select SalesOrderID,#(lf) SalesOrderDetailID,#(lf) OrderQty,#(lf) ProductID,#(lf) SpecialOfferID,#(lf) UnitPrice,#(lf) UnitPriceDiscount,#(lf) LineTotal#(lf)from Sales.SalesOrderDetail"]) in Source After change let Source = Sql.Database(".", "AdventureWorks2019", [Query = " select SalesOrderID, SalesOrderDetailID, OrderQty, ProductID, SpecialOfferID, UnitPrice, UnitPriceDiscount, LineTotal from Sales.SalesOrderDetail"]) in SourceYou can also just get you query from your SQL editor if you already have it and replace the entire code that is on the advance editor just be carefull to keep it inside the quotation marks to be text.
One best practice I picked up is to add a step before the SQL source with my code and then pick it up in the Source step this gives me two main advantages:
- I can check the code at any time because it's a step on power query
- Easy to edit because in advance editor you format has you need
For the same Query this would look like this:
let SQLCode = " Select SalesOrderID, SalesOrderDetailID, OrderQty, ProductID, SpecialOfferID, UnitPrice, UnitPriceDiscount, LineTotal From Sales.SalesOrderDetail ", Source = Sql.Database(".", "AdventureWorks2019", [Query = SQLCode]) in SourceTMDL Editor:
Regards
Miguel Félix
- MFelix
Super User
Hi irisgenx ,
MSFT just answered message about this an there was a new version of Power BI Desktop pushed yesterday evening (7 October 2026) that address this and other Native Query related issues.
Please download this new version, if the problem persist let me know so I can reach out to the MSFT team once again.
Regards
Miguel Félix