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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
pycon9
New Member

How can I switch the connection setting from Import to DirectQuery

I have an existing Power BI Desktop file with a query that pulls data from a SQL Server using the 'Import' option. How can I switch it to use the 'DirectQuery' option? So far it looks like my only option is to create a new pbix file and specify 'DirectQuery' for the initial query and recreate my reports.

 

If I create a new file and query the server using the 'DirectQuery' option, I do see an option on the lower right corner that says "DirectQuery: Enabled (Click to Change)". If I click on it, it brings up the "Connection Settings" dialogue and I'm able to change it to "Import". After that, the option is no longer available on the lower right corner and I have no way to swithch back to DirectQuery.

 

Thanks! 

1 ACCEPTED SOLUTION
pqian
Microsoft Employee
Microsoft Employee

Hi,

 

Due to the current restrictions on DirectQuery (lack support for measures, calculations, BiDirection relationships, etc), models that are created in Import mode cannot be switched into DirectQuery mode. So for now, your only option is to create the model from scratch and always stay in DirectQuery mode.

 

Regards,

PQ

View solution in original post

6 REPLIES 6
fmantovani
Regular Visitor

YES, you now cango to the relationship view and select the table​ and change the storage mode from DQ to Import.

 

Screenshot (28)_LI.jpg

pycon9
New Member

Thank you all for confirming this behavior. The reports will be recreated using the DirectQuery connection setting.

calebsg
Frequent Visitor

@pycon9 it's a one-way street into a dead end. DAMHIKT

pqian
Microsoft Employee
Microsoft Employee

Hi,

 

Due to the current restrictions on DirectQuery (lack support for measures, calculations, BiDirection relationships, etc), models that are created in Import mode cannot be switched into DirectQuery mode. So for now, your only option is to create the model from scratch and always stay in DirectQuery mode.

 

Regards,

PQ

I am refreshing powerbi dataset using schedule refresh bt i want refresh reports automatically i am using mysql database

Bjoern
Continued Contributor
Continued Contributor

@pycon9

 

Sadly, there is no good answer to your question.

 

I explained the issues in this post:

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

 

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.