cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bibhash_21
Regular Visitor

How to apply filtering on more then 2000 items

Hello Everyone,   I have a sharepoint list that have 5000 items. How to get items 7 days before created and items created by loged in user in PowerApps. I used Filter(SPList, Created>=DateAdd(Now(),-7,Days), Author.Email=User().Email) but getting Delegetion warning and it is not working. I also used Collect, ClearCollection function but it getting only top 2000 items. So IF it is posible to applied filter to more then 2000 items pls suggest me.   Thanks

3 REPLIES 3
ProNewbie
Advocate II
Advocate II
Pstork1
Dual Super User III
Dual Super User III

Assuming that the Author filter will get you below the limit you can do this by nesting the filters for your datasource. The inner filter on the Author email is delegable and if that gets you below the limit then the outer filter on Created will work even though its not delegable.

Filter(Filter(SPList,  Author.Email=User().Email) ,Created>=DateAdd(Now(),-7,Days))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
v-yuxima-msft
Community Support
Community Support

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,827)