Monday, November 30, 2026
HomeBusiness IntelligenceExcel Is in OneDrive, So Why Does Energy BI Want a Gateway?

Excel Is in OneDrive, So Why Does Energy BI Want a Gateway?


Have you ever ever linked Energy BI Desktop to an Excel file in OneDrive for Enterprise, printed your report back to Microsoft Cloth, after which discovered that refresh wants an on-premises information gateway? The file is within the cloud, so why does Energy BI want a gateway to achieve it?

The reply could also be hiding within the file path. OneDrive and SharePoint On-line can synchronise information to your pc. If you choose the synchronised file from File Explorer, Energy BI could also be studying the native copy, regardless that the identical file can also be out there within the cloud.

On this weblog, I clarify the right way to test the connection, present two methods to get the direct cloud URL, and connect with the workbook from Energy BI Desktop. We additionally take a look at what modifications with the brand new Energy Question expertise, together with a helpful diagram view that I fairly like.

You may watch the whole demonstration on my YouTube channel:

Excel is in OneDrive, however why Energy BI Nonetheless Desires a Gateway?

For those who favor listening, I’ve additionally printed an AI generated podcast model of the video:

Excel Is in OneDrive, So Why Does Energy BI Want a Gateway?

The examples use OneDrive for Enterprise and SharePoint On-line. The brand new Energy Question expertise was in public preview within the Energy BI Desktop model proven within the video, so the interface and out there options might change.

A Cloud File Can Nonetheless Have a Native Path #

Take a look at the video on YouTube at 1:46

While you synchronise OneDrive for Enterprise or a SharePoint On-line doc library along with your pc, the information seem in File Explorer. That’s handy, however the path you choose there might seem like this:

C:UsersYourNameOneDrive - Your OrganisationReportsSales.xlsx

It is a native file path. Energy BI Desktop can learn it as a result of the file is obtainable in your pc. However after publishing, the Energy BI service can’t merely browse your pc’s C drive. Refreshing that native file supply requires an appropriate gateway and entry to the file from the gateway machine.

The cloud URL for a similar workbook appears to be like completely different. It begins with https:// and factors to the file in OneDrive for Enterprise or SharePoint On-line. With a direct cloud connection and applicable credentials, this Excel supply can refresh with out an on-premises information gateway.

To test what Energy BI is utilizing, open Knowledge supply settings in Energy BI Desktop and take a look at the supply for the workbook. In my instance, the trail begins with C:Customers, which tells me that Energy BI is studying an area synchronised copy.

The supply path in my instance factors to the native pc, regardless that the workbook can also be in OneDrive.

The gateway requirement applies to the supply and the broader semantic mannequin configuration. In case your mannequin has different on-premises sources, altering this Excel connection to a cloud URL doesn’t take away their gateway necessities. The instance on this publish makes use of an .xlsx workbook. Some legacy Excel codecs, comparable to .xls and .xlsb, also can want a gateway as a result of they require the Entry Database Engine. Microsoft explains this within the Excel connector documentation and covers gateway situations in its Energy BI information refresh documentation.

For those who do want a gateway for different sources, I talk about planning and testing an enterprise gateway in Making ready On-premises Knowledge Gateway Implementation Plans for Enterprises. The publish is older, so some screens and product names might have modified.

Get the Cloud URL for the Excel File #

Take a look at the video on YouTube at 2:49

There are two strategies I exploit to get the direct URL for the workbook. Each begin from the file in OneDrive for Enterprise or a SharePoint On-line doc library. You want entry to the file along with your organisational account.

Earlier than we begin, a small however essential level: the Share or Copy hyperlink choice can provide you a sharing hyperlink somewhat than the direct file path wanted for the connection proven right here. In my instance, I exploit one of many following strategies to get the direct path as an alternative.

Methodology 1: Copy the Path from Excel Desktop #

Take a look at the video on YouTube at 3:20

This methodology requires the Excel desktop software. Open OneDrive for Enterprise or the SharePoint On-line doc library in your browser, discover the workbook, and observe these steps:

  1. Choose the ellipsis subsequent to the Excel file.
  2. Choose Open > Open in app.
  1. In Excel Desktop, choose File > Data.
  2. Choose Copy path.

The choice is Copy path, not Copy native path. In my instance, Excel copies the cloud URL with ?internet=1 on the finish. We take away that suffix when utilizing the Net connector within the subsequent part.

Join Utilizing the Net Connector #

Take a look at the video on YouTube at 3:52

With the cloud path copied, open Energy BI Desktop and observe these steps:

  1. Choose Get information > Net.
  2. Paste the copied path into the URL discipline.
  3. If the copied path ends with ?internet=1, take away that suffix so the URL ends with the workbook title, comparable to .xlsx.
  4. Choose OK.

For instance, the trail I pasted had this form earlier than eradicating the suffix:

https://contoso.sharepoint.com/websites/Finance/Sharedpercent20Documents/Gross sales.xlsx?internet=1

After eradicating ?internet=1, the URL factors to the workbook path ending in Gross sales.xlsx. If you’re connecting for the primary time, choose Organisational account, sign up with an account that may entry the file, and choose Join. You may then choose the worksheets or tables you need to use.

In my check, the file opened by means of its cloud URL. This is similar normal method I described in my 2021 weblog publish about connecting to Excel information in SharePoint On-line. It’s good to see that the strategy continues to be helpful.

Take a look at the video on YouTube at 4:59

You can even get the direct file hyperlink from the browser with out opening the workbook in Excel Desktop. Discover the file in OneDrive for Enterprise or the SharePoint doc library and observe these steps:

  1. Choose the ellipsis subsequent to the file and open Particulars.
  2. Scroll down the small print pane to Path.
  3. Choose the copy icon subsequent to Path. Its tooltip says Copy direct hyperlink.

Return to Energy BI Desktop, choose Get information > Net, and paste the direct hyperlink. This hyperlink didn’t have the ?internet=1 suffix, so I may use it with out eradicating something. Register along with your organisational account if Energy BI asks for credentials, then choose the worksheets or tables you want.

Each strategies get us to the identical place: Energy BI connects to the workbook utilizing its cloud location. The second methodology is helpful when you do not need to open the Excel desktop app simply to repeat the trail.

If you have already got a mannequin utilizing the native file, replace the prevailing queries to make use of the cloud supply, or change them with the brand new cloud-based queries. Including a brand new connection alone doesn’t change the prevailing native supply. Examine Knowledge supply settings once more to verify the queries you want not reference the native path.

Examine the Connection After Publishing #

Take a look at the video on YouTube at 5:58

Upon getting linked to the cloud file and printed your answer, test the semantic mannequin settings within the Energy BI service:

  1. Within the workspace, choose the ellipsis subsequent to the semantic mannequin and open Settings.
  2. Broaden Gateway and cloud connections and test how the Excel supply is mapped.
  3. Evaluate the cloud connection or information supply credentials and sign up if required.
  4. Run a refresh and test the refresh historical past to verify that it accomplished efficiently. Configure a refresh schedule in case you want one.

Within the instance I present within the video, the Net supply is mapped to a cloud connection and the on-premises or VNet gateway change is off. My instance additionally incorporates a separate SharePoint supply, so you’ll be able to see a couple of cloud connection within the settings.

The Net connection to the Excel file seems below cloud connections in my printed semantic mannequin.

The connection settings are helpful proof of how the supply is configured. They don’t by themselves show {that a} refresh has succeeded, so it’s nonetheless a good suggestion to run one and test the outcome. For extra particulars, see Configure scheduled refresh. I additionally talk about managing and sharing connections in Microsoft Cloth Connections Demystified. The interface and out there options might have modified since I wrote that publish.

What Adjustments within the New Energy Question Expertise? #

Take a look at the video on YouTube at 6:41

You will have seen that I used the Net connector somewhat than deciding on Excel workbook. Within the older Energy Question expertise demonstrated within the video, the Excel workbook choice opened an area file choice dialog, so I used the Net connector for the net file.

Within the new expertise, the Excel workbook connector supplies a discipline the place I may paste the cloud URL immediately. This feels extra pure when the information supply is an Excel workbook. The expertise can also be acquainted in case you have labored with Energy Question On-line in dataflows.

Allow the New Expertise #

Take a look at the video on YouTube at 9:11

Within the model I used, observe these steps in Energy BI Desktop:

  1. Open File > Choices and settings > Choices. You can even use the settings button proven within the video.
  2. Underneath World, choose Preview options.
  3. Choose New Energy Question expertise.
  4. Choose OK.

In my check, I may change the expertise with out restarting Energy BI Desktop after I had one occasion open. As this was a preview characteristic within the demonstrated model, test the choices out there in your individual model and the identified limitations.

Join with the Excel Workbook Connector #

Take a look at the video on YouTube at 8:04

With the brand new expertise enabled, use the direct file URL you copied earlier:

  1. In Energy BI Desktop, choose Get information > Excel workbook.
  2. Paste the direct cloud URL into the File path discipline within the connection type.
  3. Choose Organisational account for authentication and sign up. In my instance, I additionally set the privateness stage to Organisational.
  4. Choose Subsequent, then select the worksheets or tables you need to use.

Within the video, I pasted the URL into the connection type and Energy Question opened the workbook. Select the privateness stage that’s applicable on your personal organisation and information.

Some extent to observe: Microsoft’s identified limitations web page describes a distinct behaviour when an internet URL is pasted into the file-selection dialog: the file might be downloaded and the supply can find yourself pointing to an area path. That is completely different from the URL discipline within the connection type that I used within the video. For those who see this behaviour, Microsoft suggests utilizing the Net API connector for the URL. After connecting, test Knowledge supply settings to verify the supply continues to be the cloud URL you supposed. See Microsoft’s identified limitations and workaround.

A Fast Have a look at Diagram View #

Take a look at the video on YouTube at 9:53

This weblog is principally about connecting to the Excel file, however I can’t end with out mentioning one characteristic I actually like within the new expertise: Diagram view.

Within the older Energy Question Editor, we will go to View > Question Dependencies to see how queries depend upon one another. It’s helpful, particularly when an answer has a number of queries and parameters. The brand new diagram view provides us a extra detailed visible option to discover the queries and their steps.

In my instance, the SharePoint Web site parameter connects to a number of queries, and every question card reveals its steps. When there are merges, appends or different transformations, this view could make it simpler to know how the queries match collectively. I discover it a pleasant enchancment when working with a bigger Energy Question answer.

Remaining Ideas #

The secret is to test the situation that Energy BI truly reads. A workbook might stay in OneDrive for Enterprise or SharePoint On-line, however a connection to its synchronised C: path continues to be an area file connection. A direct cloud URL modifications how Energy BI reaches that Excel supply after publishing.

You may get that URL from Copy path in Excel Desktop or from Copy direct hyperlink within the file’s particulars pane. The Net connector works with the direct URL, and within the new Energy Question expertise I may additionally use the Excel workbook connector’s URL discipline. After publishing, test the supply mapping, credentials and refresh outcome within the semantic mannequin settings.

Have you ever ever come throughout the gateway immediate for a file you thought was already within the cloud? Let me know within the feedback under.

For those who discovered this handy, you’ll be able to observe me on LinkedIn, subscribe to BI Perception on YouTube, or observe the BI Perception podcast on Spotify. I additionally share updates on Bluesky and X, masking Energy BI, Microsoft Cloth, AI, and the real-world information and analytics issues I come throughout alongside the best way.


Uncover extra from BI Perception

Subscribe to get the newest posts despatched to your e-mail.



RELATED ARTICLES

Most Popular

Recent Comments