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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pbi_106
Helper I
Helper I

How to toggle a query between Import and DirectQuery data connectivity modes

Hello,

 

Maybe I'm missing something rather simple, but once I've created a query, can I go back in and switch the data connectivity mode?  I see the radio buttons for Import and DirectQuery showing up when I first create a query, but having trouble finding them when I go into the data source settings to change the source, these radio buttons aren't visible.  Can they be found in another place, or is there no way to change this once the query has been created?

 

Also, I'm hoping for confirmation as to the difference between Import and DirectQuery.  Does import gather up all of the data during a data refresh and tie it to the report file itself, whereas DirectQuery just queries the database in real time?

 

Thank you for your help.

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You are correct about the difference.

 

Generally, you can change from DirectQuery to Import but not the other way around (partly because DirectQuery has greater restrictions on transformations). To go from Import to DirectQuery (assuming the query doesn't violate the restrictions), you need to recreate the query (you can copy and paste the query code rather than manually re-applying the same steps).

 

Screenshot from the first link below:

AlexisOlson_3-1646342005757.png

 

Further details:
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-storage-mode

https://docs.microsoft.com/en-us/power-bi/connect-data/service-dataset-modes-understand

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You are correct about the difference.

 

Generally, you can change from DirectQuery to Import but not the other way around (partly because DirectQuery has greater restrictions on transformations). To go from Import to DirectQuery (assuming the query doesn't violate the restrictions), you need to recreate the query (you can copy and paste the query code rather than manually re-applying the same steps).

 

Screenshot from the first link below:

AlexisOlson_3-1646342005757.png

 

Further details:
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-storage-mode

https://docs.microsoft.com/en-us/power-bi/connect-data/service-dataset-modes-understand

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.