Forum Discussion
andywil456
10 years agoAdvocate II
Import Data from an Excel sheet in SharePoint
I'm trying to get data from an Excel spreadsheet stored on SharePoint. I have tried doing this by the URL path but it cannot find at file level. The only way that seems to work, is to download th...
- Anonymous10 years ago
Hi andywil456,
You can import data from Excel stored in SharePoint to Power BI Desktop by using “Get Data>Web” option as follows.
Based on my test, it works as expected when I enter the URL of Excel file via the option, data is imported successfully to Power BI Desktop.
Thanks,
Lydia Zhang
Yggdrasill
6 years agoResponsive Resident
This works for me and it's a baffle why this aint documented clearly
- Create a blank query
- Paste this code and replace the obvious string with your own
let Source = SharePoint.Files("https://COMPANYNAME.sharepoint.com/sites/SITENAME/", [ApiVersion = 15]), in Source - You might get an authentication prompt. Log in using OAUTH.
- Find your file and click on "Binary" which is the first row of the table that pops up
edit: Some firms have their own "local" url so instead of COMPANYNAME.sharepoint.com the string might just be something like COMPANYNAME/sites...
To find this url you can go on your sharepoint site and it's simply written in the URL window in your browser