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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
CamJohnston
Frequent Visitor

Trying to access and excel file in a SharePoint folder and not getting their

As the subject says I am trying to access an Excel file from a SharePoint site. As per the graphic below I am getting to share point site but not able to any of the individual site. There isScreenshot 2022-12-21 094650.png probably something simple here that I am missing. Help would be appreciated.

 

 

1 ACCEPTED SOLUTION

Try the following steps:

 

  1. Go to Teams or SharePoint (OneDrive) and open the file in the DESKTOP app (e.g. Excel for Desktop)
  2. Click File, then Info
  3. click the "Copy Path" option to copy the link into the Clipboard (see image below)
  4. Go to PowerBI Desktop 
  5. Get Data, choose Web and paste the link there (removing the last few characters "?web=1").  

Copy_Path.jpg

View solution in original post

5 REPLIES 5
themistoklis
Community Champion
Community Champion

For sharepoint,I use 'Data Source Type' = Web and not Sharepoint.
For Authentication Method I select OAuth2

 

Notes:
It is best to get the link for excel file from MS Teams. The link must be the folder link where the file lives. Then at the end of the link add a backslash and the filename.
See following format:


https://companyname.sharepoint.com/sites/PowerBIDashboards/Shared%20Documents/General/MyFiles/AccountCode_to_Category.xlsx 

 

Authentication through organisation with the credentilas

 

In Power Query (Source Step) it will look like the following
= Excel.Workbook(Web.Contents("https://companyname.sharepoint.com/sites/PowerBIDashboards/Shared%20Documents/General/MyFiles/AccountCode_to_Category.xlsx "), null, true)

Thanks for the quick reply. Very much appreciated. Sorry this may be a very basic question, I am not getting how to file from Teams. Can you point me to some guidance for this? I have tried a quick search but no luck.

 

Thank you and again apologies for the basic questions.

Try the following steps:

 

  1. Go to Teams or SharePoint (OneDrive) and open the file in the DESKTOP app (e.g. Excel for Desktop)
  2. Click File, then Info
  3. click the "Copy Path" option to copy the link into the Clipboard (see image below)
  4. Go to PowerBI Desktop 
  5. Get Data, choose Web and paste the link there (removing the last few characters "?web=1").  

Copy_Path.jpg

Weeks over weeks of trying and failing, then coming back to it later to try and solve this weird problem and this is the answer that finally did it for me.  Thank you so much for posting this!!!

That worked! Thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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