Forum Discussion
Facing error when changing data source from excel to SharePoint
here you need to select the main link. i think in the dropdown you will get one option like below choose that
https;//wlgore.sharepoint.com
Hi,
Bit late to the party, but I found a nice solution - to change data source from local network Excel file to a SharePoint Excel file which seems to bypass all the credential issues (I was having the same problems):
1. Open the dashboard in Power BI Desktop and go to Power Query Editor
2. Add a new data source New Source > More... > SharePoint Folder. Use only the base URL for your SharePoint site (top level only). This will bring up a list of all files in your SharePoint.
3. Transform Data - this will create the base query (don't bother renaming it)
4. Filter folders if necessary to find your Excel file. Once you find it, click on Binary then click
Table next to the tab you want.
5. Click Use First Row as Headers in the ribbon.
6. Go to the Advanced Editor and copy all the code you just created in previous steps
7. Now go to your original query that points to the Excel file on the local network.
8. Go to Advanced Editor for that query, select all and paste the previously copied code over the top.
9. Click OK. Your original query is now pointing to the SharePoint file and no links will be broken.
Voila! 😊 hope this helps someone...