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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gbarr12345
Post Prodigy
Post Prodigy

Making SharePoint link the data source for a report

Hi there,

 

I have a Power BI report that I have on my personal one drive. 

 

I'm looking to upload the report and Excel to a SharePoint online which I will also want to make the new data source.

 

gbarr12345_0-1732051702512.png

 

 

How can I do this so that then when I upload the Excel and refresh in the SharePoint then the data would update?

 

Any help would be appreciated.

 

Thank you.

2 ACCEPTED SOLUTIONS
123abc
Community Champion
Community Champion

STP 1.jpgSTP 2.jpgSTP 3.jpgSTP 4.jpgSTP 5.jpgSTP 6.jpgSTP 7.jpgSTP 8.jpgSTP 9.jpgSTP 10.jpgSTP 11.jpgSTP 12.jpgSTP 13.jpgSTP 14.jpgSTP 15.jpgSTP 16.jpgSTP 17.jpgSTP 18.jpgSTP 19.jpgSTP 20.jpg

 

 

To use a SharePoint Online Excel file as the data source for your Power BI report, you can follow these steps:


1. Upload the Excel File to SharePoint Online

  • Navigate to your SharePoint Online document library.
  • Upload the Excel file to the desired location in SharePoint.

2. Get the SharePoint File URL

  • Open the uploaded Excel file in SharePoint Online.
  • Copy the URL from the browser. It should look like:
    https://<tenant>.sharepoint.com/sites/<sitename>/Shared%20Documents/<filename>.xlsx.

3. Modify the URL for Power BI

  • Replace everything after Shared Documents with the exact file path in the URL, so it ends with .xlsx.
  • Ensure there are no special characters like %20 (replace it with spaces if necessary).

4. Connect Power BI to SharePoint File

  1. Open your Power BI Desktop report.
  2. Go to Home > Get Data > More.
  3. Select SharePoint Folder or Web as the connector (depending on preference):
    • Using SharePoint Folder:
      • Enter the SharePoint root URL (e.g., https://<tenant>.sharepoint.com/sites/<sitename>).
      • Navigate to the specific Excel file in the list of files.
    • Using Web:
      • Paste the modified URL from Step 3.
  4. Authenticate using your Microsoft 365 credentials if prompted.

5. Update Power BI Queries

  • After connecting to the SharePoint file, ensure your queries point to the new source:
    1. Open Power Query Editor.
    2. Replace references to your OneDrive file with the new SharePoint data source.
    3. Test the connection by clicking Refresh Preview.

6. Publish the Report to Power BI Service

  • Publish the updated Power BI report to the Power BI Service.
  • Ensure your Excel file remains in the same SharePoint location.

7. Set Up Scheduled Refresh

  1. In the Power BI Service, navigate to the Settings of the dataset.
  2. Under Data Source Credentials, authenticate the SharePoint data source with your credentials.
  3. Enable Scheduled Refresh and set the refresh frequency as needed.

This setup ensures that any updates to the Excel file in SharePoint will reflect in your Power BI report after a refresh. Let me know if you need detailed guidance on any step!

View solution in original post

Hi @gbarr12345 ,

Please follow these steps:

1.Change your data source

vzhouwenmsft_2-1732516644629.png

vzhouwenmsft_3-1732516673538.png

2.Verify that the account you enter here can log in to the SharePoint site

3.Update Power BI Desktop to the latest version

4.Clear all global permissions

vzhouwenmsft_0-1732515954043.png

vzhouwenmsft_1-1732516048526.png

Best Regards,
Wenbin Zhou

View solution in original post

14 REPLIES 14
123abc
Community Champion
Community Champion

STP 1.jpgSTP 2.jpgSTP 3.jpgSTP 4.jpgSTP 5.jpgSTP 6.jpgSTP 7.jpgSTP 8.jpgSTP 9.jpgSTP 10.jpgSTP 11.jpgSTP 12.jpgSTP 13.jpgSTP 14.jpgSTP 15.jpgSTP 16.jpgSTP 17.jpgSTP 18.jpgSTP 19.jpgSTP 20.jpg

 

 

To use a SharePoint Online Excel file as the data source for your Power BI report, you can follow these steps:


1. Upload the Excel File to SharePoint Online

  • Navigate to your SharePoint Online document library.
  • Upload the Excel file to the desired location in SharePoint.

2. Get the SharePoint File URL

  • Open the uploaded Excel file in SharePoint Online.
  • Copy the URL from the browser. It should look like:
    https://<tenant>.sharepoint.com/sites/<sitename>/Shared%20Documents/<filename>.xlsx.

3. Modify the URL for Power BI

  • Replace everything after Shared Documents with the exact file path in the URL, so it ends with .xlsx.
  • Ensure there are no special characters like %20 (replace it with spaces if necessary).

4. Connect Power BI to SharePoint File

  1. Open your Power BI Desktop report.
  2. Go to Home > Get Data > More.
  3. Select SharePoint Folder or Web as the connector (depending on preference):
    • Using SharePoint Folder:
      • Enter the SharePoint root URL (e.g., https://<tenant>.sharepoint.com/sites/<sitename>).
      • Navigate to the specific Excel file in the list of files.
    • Using Web:
      • Paste the modified URL from Step 3.
  4. Authenticate using your Microsoft 365 credentials if prompted.

5. Update Power BI Queries

  • After connecting to the SharePoint file, ensure your queries point to the new source:
    1. Open Power Query Editor.
    2. Replace references to your OneDrive file with the new SharePoint data source.
    3. Test the connection by clicking Refresh Preview.

6. Publish the Report to Power BI Service

  • Publish the updated Power BI report to the Power BI Service.
  • Ensure your Excel file remains in the same SharePoint location.

7. Set Up Scheduled Refresh

  1. In the Power BI Service, navigate to the Settings of the dataset.
  2. Under Data Source Credentials, authenticate the SharePoint data source with your credentials.
  3. Enable Scheduled Refresh and set the refresh frequency as needed.

This setup ensures that any updates to the Excel file in SharePoint will reflect in your Power BI report after a refresh. Let me know if you need detailed guidance on any step!

Thank you very much for your help! Really appreciate it!

123abc
Community Champion
Community Champion

I have also attacehd detail steps with screen shots for your help on one_drive. you can reach with this below to those detailed screen short step for easre of your issue.

If you have any problem please contacht with me on forum.

 

https://drive.google.com/drive/folders/1dpnVZ3xWncbY3KRT0FcnIlRL8vbTm4el?usp=sharing

 

Hi there,

 

Thank you for your response.

 

I followed your steps but when I got to the data source part I'm getting the following error when I put the file link in:

 

gbarr12345_0-1732132883577.png

 

How do I work around this?

Please follow v-zhouwen-msft direction. its correct.

Hi all,thanks for the quick reply, I'll add more.

Hi @gbarr12345 ,

Click here to select an account that has access to your sharepoint site to log in

vzhouwenmsft_0-1732166345634.png

If your problem is solved, please mark 123abc 's answer as the solution

Best Regards,
Wenbin Zhou

Hi Wenbin,

 

Thanks for your message.

 

I tried the organisational account option and when I tried logging in with my work email that was the option I'm still getting the error.

 

gbarr12345_0-1732476271202.png

 

gbarr12345_1-1732476276357.png

 

Any idea how to get past this?

Hi @gbarr12345 ,

Please follow these steps:

1.Change your data source

vzhouwenmsft_2-1732516644629.png

vzhouwenmsft_3-1732516673538.png

2.Verify that the account you enter here can log in to the SharePoint site

3.Update Power BI Desktop to the latest version

4.Clear all global permissions

vzhouwenmsft_0-1732515954043.png

vzhouwenmsft_1-1732516048526.png

Best Regards,
Wenbin Zhou

Thank you Wenbin. I have that working now so really appreciate it.

 

Just one more quick question. I have the Power BI report linked to the SharePoint dataset. However, when I update the excel in the SharePoint and I refresh the report it's linked to, the report doesn't update with the new data. 

 

How do I get the report the dataset is linked to to update with the new data in the App/Service?

 

App/Service:

 

gbarr12345_0-1732564185580.png

 

 

Dataset in SharePoint:

 

gbarr12345_1-1732564218651.png

 

 

Notice the 25/12/2024 isn't showing on the Power BI report.

 

Hi @gbarr12345 ,

First of all, I hope you can also mark 123abc 's answer as the solution. I fully agree with his solution.

Regarding your question,

1. update the credentials of your dataset.

vzhouwenmsft_0-1732587719370.png

2.Manually refresh your dataset or configure a scheduled refresh

vzhouwenmsft_1-1732587808563.png

vzhouwenmsft_2-1732587845515.png

3.Refresh your visuals

vzhouwenmsft_3-1732587897022.png

 

If you want to modify the excel file in sharepoint, click here

vzhouwenmsft_4-1732587983812.png

 

Best Regards,
Wenbin Zhou

I've accepted as a solution now. Thank you very much , I'm sorted now with it. Appreciate the help.

Thank You Very Much v-zhouwen-msft

123abc_0-1732167099114.gif

 

123abc_1-1732167099120.png
rajendraongole1
Super User
Super User

Hi @gbarr12345 - Please find the process flow :

1. Upload the Files to SharePoint Online
Navigate to the desired SharePoint Online library where you want to upload your files (e.g., "Documents" in the Operations Hub site as shown in your image).
Upload the Excel file:
Click on "Upload" and select your Excel file from your local system.
Upload the Power BI report:
If needed, you can upload the Power BI (.pbix) file for storage, but note that the primary interaction with the report will happen in Power BI Service.
2. Update the Data Source in Power BI Desktop
Open the Power BI report in Power BI Desktop:
Open your .pbix file that currently points to the Excel file stored on your OneDrive.
Change the data source to SharePoint Online:
Go to the Home tab and select Transform data > Data source settings.
Locate the connection referencing the current Excel file and select Change Source.
For SharePoint Online:
Use the URL of the SharePoint document library (e.g., https://[YourOrganization].sharepoint.com/sites/[SiteName]/Shared Documents/[FolderName]/[FileName].xlsx).
Ensure you authenticate with your SharePoint Online credentials (you may use either Organizational Account or Web options depending on your setup).
Apply the changes:
Ensure the updated connection is functional by refreshing the data.
3. Publish the Report to Power BI Service
After updating the data source, publish the report to Power BI Service:
Go to the Home tab in Power BI Desktop.
Select Publish and choose the relevant workspace in Power BI Service.
4. Schedule Data Refresh
Configure the Gateway (if required):
If your Excel file resides on SharePoint Online (cloud), no gateway is needed. However, ensure proper permissions.
Set up the Refresh Schedule:
In Power BI Service, navigate to your dataset under the workspace where the report is published.
Configure the refresh schedule using your organizational credentials for SharePoint Online.
5. Automate Updates
To automate updates:
Simply replace the Excel file on SharePoint Online with the updated version, ensuring the structure (e.g., columns and sheet names) remains consistent.
The next data refresh in Power BI Service will pull in the updated data.

 

Hope this information helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Rajendra,

 

I followed your steps and when I got to the changing data source part I am getting the following errors:

 

The first error is the link of the whole SharePoint folder where the Excel is within: 

 

gbarr12345_0-1732131582096.pnggbarr12345_1-1732131698800.png

 

I also tried the link of just the Excel file:

 

gbarr12345_2-1732131722304.png

 

 

gbarr12345_3-1732131784581.png

 

gbarr12345_4-1732131815639.png

 

Any idea the right way to do this or the best way to get past this?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.