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 / Collections with a fil...
Power Apps
Answered

Collections with a filter on a large dataset?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a question around using Collections. If I have a SharePoint List with 10000 rows (columns: customer_name, region, user_email):

 

  1. Can I load the entire list into a Collection or will it stop pulling at the 2000th row?
  2. If I use a Filter in the Collection and base the filter on user email so that user_email = user().email. Will this look through only the first 2000 records or will it be able to reach 10000? Side note, the number of rows assigned to a user will never exceed 150 rows. 

 

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    For your first question, do you want to load your SP List with 10000 records into a collection in your canvas app? The answer to this question is YES. You could consider bulk-load your SP list records into a collection in your app.

    Please check and see if the following threads could help in your scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Pulling-in-large-ish-SQL-tables/m-p/243777#M71518

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Loading-60-000-SharePoint-List-Items/m-p/448633/highlight/false#M133427

     

    For your second question, if you apply your Filter formula to the Collection, it would look through the whole records (10000) in your collection. The Collection would not be subject to the Delegation issue in your canvas app.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview#delegable-data-sources

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xida-msft ,

     

    Thanks for the response. I only want to load the rows for the specific user into a collection onstart of the canvas app.

    Do I have to follow the events that I need to first do a bulk upload of the SP list to a collection and then run the filter or by running the following it starts by only pulling said user's specific rows into the collection?

    Set(varUser, User().Email);ClearCollect(testtable,Filter('DataSource','User_Email'=varUser))

     

    Thanks

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    If the User_Email column is a Text type column in your SP list, and the Filter function does not face Delegation issue, you could also consider take a try with the following formula:

    Set(varUser, User().Email);
    ClearCollect(testtable, Filter('DataSource','User_Email' = varUser)) // Filter function does not face Delegation issue, and the result amount is not more than 2000

    In addition, if the amount of above Filter function result is more than 2000, I think the above ClearCollect function also could not work (please bulk-load your SP List records into collection firstly). Currently, within PowerApps, you could save 2000 records at most from other Delegable data source into a collection once time.

     

    If the Filter function faced Delegation warning issue, you must bulk-load your SP list records into a collection firstly, then apply your Filter function to this collection table.

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard