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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors