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 / PowerApps Threshold Li...
Power Apps
Unanswered

PowerApps Threshold Limit and Filtering a Collection for a Lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We have a list of items with 12,000 items (let's say "Tools") or so. We are trying to filter for a lookup value, as follows:

 

ClearCollect(ToolsCollection,Filter(Tools, Toolbox.Id=12345))

 

ClearCollect
The ClearCollect function deletes all the records from a collection and then adds a different set of records to the same collection. With a single function, ClearCollect offers the combination of Clear and then Collect. ClearCollect returns the modified collection as a table. ClearCollect can only be used in a behavior formula. Ref: https://powerapps.microsoft.com/el-gr/blog/powerapps-data-row-limit-for-non-delegable-queries/

 

However, it is not returning any items (for some Tools anyway). NB I can create a filtered list in SharePoint that is filtered to "Toolbox (indexed)".

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    What is this Toolbox you used in the formula? Also, I notice that you has ".Id" parameter following it, if you mean that you want to collect the SharePoint list items according to their ID fields, then this formula might only collect one item which if the 12345th item you created in this list. Please explain more about this formula and what you are trying to achieve.

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-monli-msft
    I'm Ben's co-worker, actually we have a lookup column in this list called Store, and we want to filter all items which the Store.Id is equal to 12345 for example. this is the forumla we are using at the moment:

    ClearCollect(ToolsCollection,Filter(Tools, Store.Id=12345))

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
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard