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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rygregg10
Regular Visitor

Sharepoint Folder

I created a several dashboards using XML files located on my hardrive. I have setup a Sharepoint so my corworker and I can work from the same data tables. How can I replace the XML files located on my hardrive with the same XML files located on Sharepoint?

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@rygregg10,

You can change the source code of the current query to SharePoint Folder in Advanced Editor of Power BI Desktop Query Editor .

Assume that your original code of the query is as below.
1.PNG

Then you can change the code to the following:

let
      Source = SharePoint.Files("SharePoint site root URL ", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Folder Path] = "SharePoint site root URL/Shared Documents/sharepoint Foldername/")),
    #"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows" ,{"Content"})
in
    #"Removed Other Columns"

2.PNG

Regards,
Lydia

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

@rygregg10,

You can change the source code of the current query to SharePoint Folder in Advanced Editor of Power BI Desktop Query Editor .

Assume that your original code of the query is as below.
1.PNG

Then you can change the code to the following:

let
      Source = SharePoint.Files("SharePoint site root URL ", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Folder Path] = "SharePoint site root URL/Shared Documents/sharepoint Foldername/")),
    #"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows" ,{"Content"})
in
    #"Removed Other Columns"

2.PNG

Regards,
Lydia

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.
Chihiro
Solution Sage
Solution Sage

Use SharePoint Folder connector.

Found under "All" section of Get Data.

 

URL should be set folder containing all your files.

Ex: https://CompanyName.sharepoint.com/sites/foldername/

 

Try following article in link below.

https://powerbi.microsoft.com/en-us/blog/combining-excel-files-hosted-on-a-sharepoint-folder/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors