cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

PowerApps Threshold Limit and Filtering a Collection for a Lookup

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)".

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: PowerApps Threshold Limit and Filtering a Collection for a Lookup

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 Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: PowerApps Threshold Limit and Filtering a Collection for a Lookup

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))

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,794)