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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
diverdown1964
Most Valuable Professional
Most Valuable Professional

How do I change a query from Import to Direct Query?

I have a SQL Azure database that I can use Direct Query with for a new PBIX file. selecting the tables to load allows me to check the edit button and convert to Direct Query. However, I have previously created PBIX files that import the data. I can find no mechanism that will allow me to convert these queries to Direct Query mode. Is this possible?

1 ACCEPTED SOLUTION
Bjoern
Continued Contributor
Continued Contributor

 

Hi @Anonymous and @diverdown1964, i had commented on this question in another thread:

http://community.powerbi.com/t5/Desktop/Direct-Query-and-Enterprise-migrating-from-import/m-p/11922#M2728

 

Hope that helps.

 

BR

View solution in original post

10 REPLIES 10

we have created a very complex report, are we serious that to change from import to direct we need to start a new report from scratch?? there must be another way, please advise as we are desperate 

thank you in advance

we have created a very complex report, are we serious that to change from import to direct we need to start a new report from scratch?? there must be another way, please advise as we are desperate 

thank you in advance

jaykilleen
Advocate II
Advocate II

Despite this being marked as 'solved' the real answer is "You can't".

Anonymous
Not applicable

Hi,

 

Did you ever get anywhere with this, got the same issue myself.....?

 

Cheers

Bjoern
Continued Contributor
Continued Contributor

 

Hi @Anonymous and @diverdown1964, i had commented on this question in another thread:

http://community.powerbi.com/t5/Desktop/Direct-Query-and-Enterprise-migrating-from-import/m-p/11922#M2728

 

Hope that helps.

 

BR

Anonymous
Not applicable

I know this thread is a little bit old, but for anyone looking to do this I was able to partially achieve this. It seems if you go into the Power BI Desktop Query editor, remove the old table and reimport it then when you apply the Dataset updates it will prompt you. It appears you need to re-add your relationships, but at least it's not starting from scratch.

Anonymous
Not applicable

Hi BR,

 

Thanks, I was fast coming to the same conclusion, I had the idea to copy the Advanced Editor code from the old file to the new direct query file and obviously started getting errors due to the transformations - makes sense just to start again and deal with the 'limitations' of the different connection type.

 

Cheers

 

Mark

The newish copy & paste functionality in the Query Editor doesnt work in this scenario.  Somehow it copies across the Import setting to a PIBX with existing Direct Query queries, even though the PQL code is identical (and doesnt break the Direct Query "rules").  There's no visible UI setting on the query to fix this.

 

I'm doing it by starting with a DQ query, then duplicating that and copying the name and PQL script from my Import model.  Finally I rebuild the Relationships.

 

It's frustrating - surely this was an obvious "use case" when DQ was introduced?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.