Forum Discussion
Refresh data from onedrive
- 4 years ago
Hi. You need to find the weburl or the excel file to replace the "C\\" and change the method File.Contents to Web.Content. The following post explains it:
https://blog.ladataweb.com.ar/post/185337134590/alternativa-para-conectar-power-bi-a-onedriveI hope that helps,
jennratten Sorry, i'm not fully understanding it (yet). In my PBIX file I have two tables that come from Excel. Currently for both those tables when I go into the query editor the source is:
= Excel.Workbook(File.Contents("C:\Users\name\OneDrive - company.com\PowerBI\Report V3.xlsx"), null, true)
How do I need to adjust this?
You should go to the folder that contains the file, then right-click and click View Online. That should open the file in the web. Look in the address bar. Get the text that appears before /_layouts and remove :u:/r/ from the middle. That should be the path to use in the Sharepoint connector.
https://xxxxxxx-my.sharepoint.com/personal/yourname_xxxxxxx_com