cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Top Kudoed Authors
Users Online
Currently online: 259 members 2,784 guests
Please welcome our newest community members: