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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
PowerBINoob24
Resolver I
Resolver I

Changing Data Source

Hello,

I've created a PowerBI dashboard and it is based on several spreadsheets on a local drive.  I need to move the spreadsheets to a sharepoint site so I can schedule updates.

 

How can I do that without destroying all the data tabels and custom column/measures work?

 

TIA

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

Hi @PowerBINoob24 ,

You can switch your data source from local Excel files to SharePoint without breaking your existing model, tables, or measures. Here’s how you can do it safely:

  1. Move your Excel files to SharePoint or OneDrive and grab the direct file link (ending with .xlsx).

  2. In Power BI Desktop, go to Transform Data > Data Source Settings.

  3. Select your old local file source, then click Change Source.

  4. Paste the new SharePoint or OneDrive link. If using SharePoint, it’s best to use the SharePoint Folder or Web connector.

  5. In Power Query, check that the sheet or table names match up just like before. If you use SharePoint Folder, be sure to filter for your file by name.

  6. Close & Apply – and you’re done. All relationships, calculated columns, and measures will stay as long as the file structure and column names haven’t changed.

 If you ever get stuck or don’t see “Change Source”, you can edit the query in Advanced Editor and just swap the file path there. Make sure to back up your PBIX first, just in case.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

2 REPLIES 2
rohit1991
Super User
Super User

Hi @PowerBINoob24 ,

You can switch your data source from local Excel files to SharePoint without breaking your existing model, tables, or measures. Here’s how you can do it safely:

  1. Move your Excel files to SharePoint or OneDrive and grab the direct file link (ending with .xlsx).

  2. In Power BI Desktop, go to Transform Data > Data Source Settings.

  3. Select your old local file source, then click Change Source.

  4. Paste the new SharePoint or OneDrive link. If using SharePoint, it’s best to use the SharePoint Folder or Web connector.

  5. In Power Query, check that the sheet or table names match up just like before. If you use SharePoint Folder, be sure to filter for your file by name.

  6. Close & Apply – and you’re done. All relationships, calculated columns, and measures will stay as long as the file structure and column names haven’t changed.

 If you ever get stuck or don’t see “Change Source”, you can edit the query in Advanced Editor and just swap the file path there. Make sure to back up your PBIX first, just in case.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Thank you!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.