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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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