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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
cjones
Advocate I
Advocate I

Changing a Direct Query Power BI Model without Importing all data

Hi,

 

We have a Azure SQL DB which our Power BI connects to via Direct Query.

 

We want to add an additional dimension to the Power BI model which exists in the DB but when I try to add it Power BI forces me to import all data for all of the queries with the message:

 

Switching to Import Mode

The data source you are trying to connect to is different than the existing DirectQuery data source. To continue, all queries must be switched to import mode, which may result in a large amount of data being loaded.

 

But it is the same data source. Is there something I'm missing to be able to add additional data to a direct query model?


Thanks

Chris

5 REPLIES 5
markdy
Advocate I
Advocate I

Thank you for stating that the SQL Server Database Server and Database is case sensitive.

pqian
Microsoft Employee
Microsoft Employee

@cjones, currently all DQ data must come from the same database (also case sensitive)

 

Can you open the queries editor (Edit Queries), and then see how many queries you have in there? For each of the queries, can you go to View->Advance Query Editor and paste their M formula here? I can diagnose the problem better if I can see the queries.

Hi pquian,

 

Your statement -> currently all DQ data must come from the same database (also case sensitive) was the key.

 

I checked both database statements and one of them explicitly mentioned port 1433 whereas the other just stated the database name (as the default is 1433 the connection worked fine).

 

Apparently, this difference was enough for Power BI to think that it was a new different database and force the reimport.

 

Thanks for your help!

Anonymous
Not applicable

How do I you solve this?

pqian
Microsoft Employee
Microsoft Employee

Yes, unfortunately we currently have to put in this restriction based on the user supplied connection info. We are working on lifting this restriction in the future.

 

Glad your problem is solved 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.