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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
laurachung
Frequent Visitor

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

@laurachung , 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

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

@laurachung , 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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