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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Access in SharePoint folder in Power Query takes a lot of time

Hello eveyone!

So I am trying to access some excel data files in a SharePoint folder and I tried to use a trick I saw somewhere where I can filter out the files that I want using a list. But doing that seems to take A LOT of time to process. Do you guys have any idea on what's going on? The code used is shown below. And I am sure that the line I mention is the problem, because when I replaced it with a fixed filter, the loading time disappeared. Thank you!

 

let
    Source = SharePoint.Files("sharepoint folder", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Folder Path], "KPI_Extracts")),
    #"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each List.Contains(Files, [Name])), <- this line causes the issue
.
.
.

 

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

Have a look at this video

 

https://www.youtube.com/watch?v=XuLnSYjmsJo

 

https://www.youtube.com/watch?v=XuLnSYjmsJo

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Hi @harshnathani 

Maybe I wasn't clear enough so I do apologize for that. I don't want to connect to a SharePoint list. I already have a list and I am trying to use that as a filter to filter out the rows that I need like a text filter. Please read the Power Query code that I have included. The third line is what's giving me trouble.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.