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 / Filter a collection wi...
Power Apps
Answered

Filter a collection with 5k rows in dropdown based on a text search box

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello there! 

 

I am trying to filter a collection with 5k rows in a dropdown based on a text search box. I have a formula that places all rows into a collection like this;

 

Concurrent(
 ClearCollect(col1; Filter(EindproductenBevMateriaal; UniekID >= 1 && UniekID <= 2000));
 ClearCollect(col2; Filter(EindproductenBevMateriaal; UniekID >= 2001 && UniekID <= 4000));
 ClearCollect(col3; Filter(EindproductenBevMateriaal; UniekID >= 4001 && UniekID <= 6000));
 ClearCollect(col4; Filter(EindproductenBevMateriaal; UniekID >= 6001 && UniekID <= 8000));
 ClearCollect(col5; Filter(EindproductenBevMateriaal; UniekID >= 8001 && UniekID <= 10000))
);;
ClearCollect(colCombined; col1; col2; col3; col4; col5);;

 


So I have a dropdown and a text search field. 

This is the code I've tried, it displays the Bestands1 like I want to (only 2000 rows), but not when I try to search for it. Is there any way to get rid of this delegation without using StartsWith? Is delegation the issue for it showing no results when filtering by text search box, or is it something else?

 

If(
 ZoekenNaarOrders.Text = "";
 colCombined.Bestandsnaam1;
 Filter(
 colCombined;
 ZoekenNaarOrders.Text = Bestandsnaam1
 )
)

 

 

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    You can use Search on the collection colCombined.  It is delegation friendly but will only return the 1st 2,000 results (which is fine because you’ll want the user to narrow it down).

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • GarethPrisk Profile Picture
    2,828 on at

    Am I interpreting this correctly?

    • You have a Drop-down control which you want to filter, based on a separate Label control
    • The amount of items for the Drop-down control is large (up to 5k records)
    • Your data source must not support delegation, although you mention trying to keep it - what is your data source?

     

    A few immediate notes:

    • That is an excessively large amount of values for a Drop-down control
      • Seems like it would be almost unusable unless filtered down significantly
      • Any change to the Items property (i.e. change in search) will effectively reset and deselect whatever was chosen; even if not intended
      • Would a Gallery make more sense?
    • Combining search and a list is exactly what Combo-boxes are intended for
      • It there a reason you'd split these up?
    • Delegation
      • In most cases, delegable sources handle large(ish) (2k+) volumes of records easily
      • Is there any others reasons to create the Collection for the app?
        • Otherwise, you can likely delegate this

    Don't have the context for your app or controls, so please don't take this as a design criticism.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey there @GarethPrisk 

    Thank you for your response, the solution from Davey was the one I was looking for. Somehow I didn't think of this easy solution. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard