web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Document Library filte...
Power Apps
Unanswered

Document Library filter very very slow

(0) ShareShare
ReportReport
Posted on by 157

Hi, 

 

I am building an app that should return a PDFs thumbnail based on a user selection in a combobox

 

The app has two data sources (for the moment), plus one combobox and one gallery

 

Data source 1. an excel file hosted on sharepoint connected via Excel Online (buisness). I have no choice but to use the excel file (SP list is not an option), the excel file has a column of unique names that populate the combobox

Data Source 2. a sharepoint document library with 650 pdfs (will grow)

 

Combobox

 

 

Filter(
 myExcelFileSource;Name_Column
 )

 

 

Gallery Item

 

 

With (
 {_item: PDF_Documents};
 Filter(
 _item;
 
 hiddenIsFolder = "no" && NameDropdown.SelectedText.Name in Name 
 )
 )

 

 

Gallery Image 

 

 

ThisItem.Miniature.Large

 

 

 

There is no delegation warning in the developer screen and the code above works, but it is really really slow - it can take a couple of minutes to retrieve the thumbnail. 

 

Looking in the monitor I see the gallery item filter is requesting 2000 lines and returning 650 line (the number of PDFs) 

 

Does this mean that each time a look up is called the app downloading all 650 thumbnails !? 

 

Can anyone help

 

 

Categories:
I have the same question (0)
  • td1979 Profile Picture
    157 on at

    I have noticed that if I change my gallery items filter to the simple statement below the call of a thumbnail is instantanious... 

    Filter(PDF_Documents;Name = NameDropdown.SelectedText.Name)

     

    however there is a delgation warning 😕  - so I guess my question evolves into how I modify the above filter to not have a delgation warning

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @td1979,

    The following formula is delegable:

    Filter(PDF_Documents;Name = NameDropdown.SelectedText.Name)

    This formula is delegable as well:

    Filter(
     PDF_Documents;
     
     hiddenIsFolder = "no" && Name=NameDropdown.SelectedText.Name
     )

     

    Here is my testing result, could you please show me your delegation warning and mark which part it exists?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard