Connecting to Excel Files in OneDrive Personal from Power BI
Power BI is Microsoft’s data visualization solution

One might assume that connecting to Excel files from a Microsoft’s personal OneDrive was an intuitive task. It is a simple task, but it is not very intuitive.

To achieve the connection, start by navigating to the personal OneDrive via a browser of your choice.

After locating and opening the excel file:

  1. Go to File > Share > Embed > Generate.


  2. In the lower left part of the prompted dialogue box, find the Embed code block.


  3. Copy the code block and paste it onto a document editor of your choice (e.g. Word, notepad++).

  4. Now build a download URL to the excel file of the form

    where the actual values for resid and authkey are found in the code block from the previous step. Once the values are found, replace them in the link. Make sure there is no white spaces in your download URL.


  5. After the download URL is ready, create a Web Connector in your report. From Power BI Desktop, go Home > Get Data > Web.


  6. For URL, use the download URL built in the previous step. Click Ok.


  7. Select the Excel sheet you would like to load and click Load.


And you are done. You may wonder, why use a Web connector instead of an Excel connector? Both approaches will achieve the same goal when working from Power BI Desktop on your computer. The problem arises once the report is published to Power BI Service. In the service, the Excel connector will fail to find the local path to your Excel file. Meanwhile, the web connector will work regardless of the cloud service that is running the report.

Connecting to Excel Files in OneDrive Personal from Power BI
Older post

Create Calendar Tables in Power BI

Tips on creating basic calendar tables.

Newer post

Display the Last Refresh Date and Time in Power BI

Give your stakeholders the ability to know when your data was last refreshed precisely

Connecting to Excel Files in OneDrive Personal from Power BI