Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
wmorris20
Helper II
Helper II

SharePoint On Premise Connection to Excel File

We have an enterprise data gateway succesfully setup, but I'm unable to figure out the connection string necessary to connect to an Excel file which is on premise and inside a subsite.

 

http://[site]/[subsite]/Shared%20Documents/[file.xlsx]

 

I haven't been able to find documentation that describes that string necessary (or even if this is possible).  I have been able to connect to a SharePoint folder at the root site, but I need a specific file within a subsite library.

 

Thanks for any help you can offer.

 

Capture.JPG

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @wmorris20,

Based on my test, you can use one of the following methods to connect to Excel on SharePoint subsite in Power BI Desktop.

1. Copy URL of Excel file as shown in the following screenshot, then paste it to “Get Data>Web” entry in Power BI Desktop, please note that you would need to exclude “?Web=1” from URL of Excel file.
1.PNG2.PNG


Then choose Windows method in the following screenshot, enter your account and password, you will be able to load data from your excel file.
2.1.PNG


2. Paste URL of your SharePoint subsite in the following screenshot, choose Windows method in the next screenshot, enter your account and password.
3.PNG4.PNG


After loading data in Power BI Desktop, in the query editor window, there will be Content column, along with an icon that appears to be two down arrows. Click on the icon and you'll be able to select table or sheet from your excel file.
5.PNG6.PNG


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

Hi @wmorris20,

Based on my test, you can use one of the following methods to connect to Excel on SharePoint subsite in Power BI Desktop.

1. Copy URL of Excel file as shown in the following screenshot, then paste it to “Get Data>Web” entry in Power BI Desktop, please note that you would need to exclude “?Web=1” from URL of Excel file.
1.PNG2.PNG


Then choose Windows method in the following screenshot, enter your account and password, you will be able to load data from your excel file.
2.1.PNG


2. Paste URL of your SharePoint subsite in the following screenshot, choose Windows method in the next screenshot, enter your account and password.
3.PNG4.PNG


After loading data in Power BI Desktop, in the query editor window, there will be Content column, along with an icon that appears to be two down arrows. Click on the icon and you'll be able to select table or sheet from your excel file.
5.PNG6.PNG


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for the very detailed response and solution.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors