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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How do you connect to an excel document on sharepoint?

Hi,

 

I currently connect to an excel document on sharepoint, however when trying to add it to gateway it says outh authentication is not available?

 

Any help appreciated?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Amitchandak,

 

For some reason OUTH authentication doesnt work that way using the web connector, I managed to get it to work but had to use the sharepoint connector.

 

For example

 

 

    Source = SharePoint.Files("https://site.sharepoint.com/Referrals", [ApiVersion = 15]),
    #"Referral Tracker xlsx_https://site sharepoint com/Referrals/Shared Documents/" = Source{[Name="Referral Tracker.xlsx",#"Folder Path"="https://site .sharepoint.com/Referrals/Shared Documents/"]}[Content],
    #"Imported Excel Workbook" = Excel.Workbook(#"Referral Tracker xlsx_https://site sharepoint com/Referrals/Shared Documents/"),
    Children_Sheet = #"Imported Excel Workbook"{[Item="Children",Kind="Sheet"]}[Data],

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi Amitchandak,

 

For some reason OUTH authentication doesnt work that way using the web connector, I managed to get it to work but had to use the sharepoint connector.

 

For example

 

 

    Source = SharePoint.Files("https://site.sharepoint.com/Referrals", [ApiVersion = 15]),
    #"Referral Tracker xlsx_https://site sharepoint com/Referrals/Shared Documents/" = Source{[Name="Referral Tracker.xlsx",#"Folder Path"="https://site .sharepoint.com/Referrals/Shared Documents/"]}[Content],
    #"Imported Excel Workbook" = Excel.Workbook(#"Referral Tracker xlsx_https://site sharepoint com/Referrals/Shared Documents/"),
    Children_Sheet = #"Imported Excel Workbook"{[Item="Children",Kind="Sheet"]}[Data],

 

amitchandak
Super User
Super User

@Anonymous , Please refer to this, you have open excel on the desktop and get a link(Same for SharePoint and one drive), remove the part after the file name (?web=1)

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-onedrive-business-links

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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