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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Alex_Stennett
New Member

Using imported Excel files and direct query to SQL on same report.

Hi.  I am trying to update an existing, working, Power BI report based on Excel files stored on prem.  Because of the nature of the report this can be downloaded, data refreshed then republished when needed (monthly).  The issue comes when we want to add some direct query connections to Azure SQL via a data gateway.  This works fine in Power BI Desktop as all of the data sources are accessible but fails once published.  It needs to set the gateway on the connection but can't as it is also looking for the Excel files in the same gateway connection.  It would not be a simple thing to add these Excel files to the gateway (as far as I know).

I have tried creating a second report with just the SQL connections on it then referring the main report to the dataset for this new report.  Again it works in PBI Desktop but fails when published.

Is there a way of combining these data sources in one report or do I just need to keep the two spearate?

Thanks in advance

Alex

2 REPLIES 2
v-yinliw-msft
Community Support
Community Support

Hi @Alex_Stennett ,

 

Could you please tell me the details of the error?

 

Whether this data source is the first or the second, it cannot avoid the need for a gateway and credentials if you want to refresh the reports.

 

If the error occured when you published, you can check this button turn on or off.

vyinliwmsft_0-1669363223309.png

 

I think you can try to configure the gateway and credentials for the SQL data source.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I think that is most of my problem.  This report was designed by someone else and was never meant to refresh whilst on the PBI Server.  What they did was download the PBIX file, refresh data locally and re-publish.  Now when I try and add "Live" data it puts them all into the dataset for the report and tries to refresh.  It would be able to reach SQL (and can in its own report) but cannot reach the Excel files so the whole refresh fails.  What I was hoping for was for two datasets, one that could refreesh (direct query really) and one that didn't (Excel files updated monthly).

I'll have a look for that setting which I am assuming is a PBI admin type thing?

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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