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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors