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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Boyan
Helper I
Helper I

How do I edit a "Direct Query" source meaning I need to edit the actual SQL code?

Hi everyone,

 

I'm using a Direct Query to connect to various tables. Each object shows up in my model as a separate query and I only have one data source - the SQL server against which each Direct Query is run. All screen shots provided in Microsoft documents are WRONG – there’s no such clickable button as “Query Editor” so I am at a loss here.


All posts so far relate to editing a data source, that is NOT what I need to do. I need to edit the query, not the data source. How do I do that?

 

Boyan_0-1592578327908.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Boyan 

If you go the report view you can right click on the query and see the 'Edit Query' option.  This doesn't show up if you are in the model view (which makes no sense).

2020-06-19_14-23-09.png

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Boyan 

If you go the report view you can right click on the query and see the 'Edit Query' option.  This doesn't show up if you are in the model view (which makes no sense).

2020-06-19_14-23-09.png

@jdbuchanan71 Thank you - that kicks the elusive "Query Editor" and from there I can right-click on the source and edit the query. Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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