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 / Collect a short filter...
Power Apps
Answered

Collect a short filtered table from a large sharepoint list - Delegation issues

(1) ShareShare
ReportReport
Posted on by 20

Hi all,

 

I have a large sharepoint list (10000 rows) from which I want to bring in a tiny subset (10-20 rows) and store in a collection. Obviously delegation becomes an issue here. This action is to be performed when the user presses a button. 

 

The filter expression is delegable. Looks something like Filter(SPList, Textcol = Textval). I can put this into a gallery and see the expected values.

 

However put that same expression into a Collect or ClearCollect (or Set) and it becomes non-delegable. ie ClearCollect(Mycol, Filter(SPList, Textcol = Textval)). I was hoping that the delegability of Filter would still apply, then collect would work no problem as it was only storing 10 rows but that isn't the case.

 

My current work around is to use Filter(SPList, Textcol = Textval) in the items property of an invisible gallery. Followed by using ClearCollect(Mycol, DummyGallery.AllItems) in the button to load my desired table into a collection. Is there another way?

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @NSBI ,

     

    Cause ClearCollect is not delegable , your requirement cannot be achieved purely using formulas. I believe the approach you are currently using is the most efficient. Alternatively, you could consider using a flow to return the query results, but this would be more complicated than your original approach.

     

    Best Regards,

    Bof

  • NSBI Profile Picture
    20 on at

    Thanks @v-bofeng-msft 

     

    So it is as I feared then, thanks for your help.

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