cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rygregg10 Visitor
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

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: Sharepoint Folder

@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.
2 REPLIES 2
Chihiro Established Member
Established Member

Re: Sharepoint Folder

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/

Moderator v-yuezhe-msft
Moderator

Re: Sharepoint Folder

@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.

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 429 members 4,218 guests
Please welcome our newest community members: