r/PowerBI • u/soheileee • 47m ago
Discussion Avoiding unnecessary gateway dependencies when connecting Power BI to Excel files in OneDrive
A common source of confusion when connecting Power BI to Excel files stored in OneDrive for Business or SharePoint Online is the requirement for an on-premises data gateway.
When selecting a synchronised Excel file from File Explorer, Power BI treats it as a local data source rather than a cloud-based source.
There are two simple ways to retrieve the cloud URL:
- In Excel Desktop, go to File > Info > Copy path. Remove the
?web=1suffix if present. - In OneDrive or SharePoint Online, open the file's Details pane and copy the path.
You can then use the Web connector and authenticate using your organisational account.
The new Power Query experience in Power BI Desktop also allows you to enter the cloud URL directly when using the Excel workbook connector.
I recently published a walkthrough covering both Power Query experiences, including a quick look at the new Diagram View.
For anyone interested, here is my blog post:
https://biinsight.com/excel-is-in-onedrive-so-why-does-power-bi-need-a-gateway/
Hope someone finds it useful.

