cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mikemagill Frequent Visitor
Frequent Visitor

Combining files in a SharePoint Folder - Not working

I am helping a charity with Power BI.

 

As a trial I have successfully created a query to combine a number of Excel files in a SharePoint document library.  When I try to recreate this query to combine the live files on the charities' SharePoint document library I get stuck at the first step of filtering down to the specific folder the files are in - no file names show up!!

 

I don't understand what I'm doing wrong.

 

Any ideas?

2 REPLIES 2
v-danhe-msft Super Contributor
Super Contributor

Re: Combining files in a SharePoint Folder - Not working

Hi @mikemagill,

Based on my test, this feature can work on my side like the picture below:

F.PNG

Would you please share some screenshots to clarify “I get stuck at the first step of filtering down to the specific folder the files are in - no file names show up”?

When you select the SharePoint Folder connector and enter the SharePoint site URL, are there records retrieved for this specific folder you mentioned?

Does the credential you used to retrieved data has permission to access the specific folder?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mikemagill Frequent Visitor
Frequent Visitor

Re: Combining files in a SharePoint Folder - Not working

The first part of the query is as follows:

 

let
Source = SharePoint.Files("https://#######.sharepoint.com/sites/man1", [ApiVersion = 15]),
#"Filtered Rows - DB Folders" = Table.SelectRows(Source, each Text.Contains([Folder Path], "Shared Documents/J. ##### DATABASE/Live & Archive Databases/")),
#"Filtered Rows - DB files" = Table.SelectRows(#"Filtered Rows - DB Folders", each Text.EndsWith([Name], " Live DB.xlsm") or Text.EndsWith([Name], " Archive DB.xlsm"))
in
#"Filtered Rows - DB files"

 

This query is fine on my SharePoint site and results in two files correctly being listed.  On the charity SharePoint site, no files are listed.

 

I can view the files directly on the team site so I presume the credentials I entered also would permit the same.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

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

Users Online
Currently online: 154 members 2,085 guests
Please welcome our newest community members: