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 / Why Can't I see all of...
Power Apps
Answered

Why Can't I see all of my items even though I pulled them all into a collection?

(0) ShareShare
ReportReport
Posted on by 184

I have an SP list with more than 4000 entries and growing.  In order to get around the 2000 item limit in power apps, I am creating collections when the app starts.  Here's the code:

 

ClearCollect(CollectionA,Filter(REM_Wood_Inventory,ID<2000));ClearCollect(CollectionB,Filter(REM_Wood_Inventory,ID>=2000 And ID<4000));ClearCollect(CollectionC,Filter(REM_Wood_Inventory,ID>=4000 And ID < 6000));ClearCollect(CollectionD,Filter(REM_Wood_Inventory,ID>=8000 And ID < 10000));ClearCollect(CollectionE,Filter(REM_Wood_Inventory,ID>=10000 And ID < 12000));ClearCollect(CollectionF,Filter(REM_Wood_Inventory,ID>=12000 And ID < 14000));ClearCollect(CollectionG,Filter(REM_Wood_Inventory,ID>=14000 And ID < 16000));ClearCollect(InvoiceInventory,CollectionA,CollectionB,CollectionC,CollectionD,CollectionE,CollectionF,CollectionG)

 

However, when I go to search for dates after the first of this year, Nothing pulls up.  It's like it's not pulling in all of my entries even though I should have a collection with well over 2000 entries.  Can I still not search by Date or will anything past 2000 in a collection not filter either?

 

Here's the filter code I have going on my gallery: 

 

If(IsBlank(SearchBar.Text),Filter( InvoiceInventory,Wood_Type="Cant",Value('Board Feet')>0),If(Toggle1.Value=true,Filter(InvoiceInventory,SearchBar.Text in Text('Orginal Date (Date Only)',DateTimeFormat.ShortDate,"en-US"), Wood_Type="Cant",Value('Board Feet')>0),If(Toggle1_1.Value=true,Filter(InvoiceInventory,Wood_Type="Cant",Value('Board Feet')>0,SearchBar.Text ='Cant Vendor'),InvoiceInventory)))

 

 

Here's a picture of the filter working:  Capture.PNG

Here's a picture of it not (notice the dates):

2.PNG

On a side note, people are filtering by dates by selecting a date from the date picker.  The date picker is set as a variable and passed to the search bar.

 

Thanks for your help guys!

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Salamander94 

    In SharePoint, the ID is an odd type of number.  You can only use = as the operator with it.  >, < will not work and you will not be able to create collections using them.  Please @WarrenBelz 's blog post about how to deal with delegation issues in SharePoint. https://www.practicalpowerapps.com/delegation/power-apps-delegation-sharepoint/ 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard