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
Anonymous
Not applicable

Future-proof Sharepoint data source

Hi all,

 

I'm looking for the best way to future-proof the connection to my Excel data source (which sits in Sharepoint) so that my links don't break when a folder name is changed or the Excel document is moved.

 

Is there a way to link Power BI to Document ID rather than a folder path so when documents are moved around these links don't break? Is there a different solution out there?

 

Not sure if this is helpful, but below is how it's currently pulling the data:

 

let
    Source = SharePoint.Files("https://companyname.sharepoint.com/personal/user_name/", [ApiVersion = 15]),
    #"All Project Costs xlsx_https://companyname.sharepoint.com/personal/user_name/Documents/Dashboarding/" = Source{[Name="All Project Costs.xlsx",#"Folder Path"="https://companyname.sharepoint.com/personal/user_name/Documents/Dashboarding/"]}[Content],
    #"Imported Excel" = Excel.Workbook(#"All Project Costs xlsx_https://companyname.sharepoint.com/personal/user_name/Documents/Dashboarding/"),
    Sheet1_Sheet = #"Imported Excel"{[Item="Sheet1",Kind="Sheet"]}[Data],

 

 

Thanks in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I doubt that is possible. But follow this way suggested by guyinacube so that can be modified easily.

https://www.youtube.com/watch?v=XIq5vN5oPf8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I doubt that is possible. But follow this way suggested by guyinacube so that can be modified easily.

https://www.youtube.com/watch?v=XIq5vN5oPf8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for the reply Amit. 

 

Really great idea in the YouTube video - whilst it might be a bit time consuming to adapt to my specific problem, I think it's a good thing to put in practice for the root sharepoint folder.

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.