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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Direct Query mode

Hi!

I'd like to connect to SQL server with direct query mode, but I have a few Excel file which is nedded to the model. How can I import these files without changing the mode to import instead of direct query?

Thanks for your help!

Cheers, 
Máté

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

 

Excel is not a data source that supported directqurey. So currently, if you want to use Excel and SQL Server data source in a Power BI report, you need connect to them by using import mode. 
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-directquery-data-sources/

 

If you excel file is rarely change, you can import it to SQL Server database, and then connect to it in Power BI. So that you do not need to change connect mode to import.

 

Regards,

Charlie Liao

Anonymous
Not applicable

Dear Charlie,

Thanks for your reply! Yeah I found the same way, I imported my excel files into sql so I could use the Direct Query mode. But mow I have the problem that some measure and functions does not have compatibility with Direct Query. Can I somehow write them in sql?

Best Regards,
Máté

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.