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
jos818
Helper I
Helper I

Best practice - Switching data source xlsx to SQL table

Hi, I have a pbix currently populated using 3 local excel files. Im looking to set automation and publish the dashboard to eliminate the need for manual processes, the benefit will be daily refresh on the dashboard effectivelessly.

There are currently 40 tabs in PBIX each with over 5 visuals so any time spent not having to repoint data source, measures etc would be greatly appreciated.

Is there a quick way in PBI to simply switch the data source over to the new? 

 

Many thanks in advance.

1 REPLY 1
HotChilli
Super User
Super User

Each of the 40 tabs has nothing to do with the data connection.  The data connection is per each query in Power Query and it will be one line in each query. 

The challenge will be to do with the structure of the data and any differences between Excel and SQL Server.

3 Excel files may contain individual tables (which are extracts from the SQL database? - it doesn't say this in your post so I'm guessing) and it may be as simple as replacing the connection line in each query to use

Sql.Database

with appropriate parameters, instead of 

Excel.Workbook

If that was the case, happy days but I suspect it won't be so straightforward.

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.