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 / CountRows stopped on 4...
Power Apps
Unanswered

CountRows stopped on 4,000 records

(0) ShareShare
ReportReport
Posted on by 148

Hello, guys hope everyone is doing well.

 

I have a collection and I'm using this code on the label to display the total records

 

 

CountRows(colMyCollection)

 

 

My problem is the code stopped reading the total records of more than 4,000 so is there any way to display my total collection records with more than 4,000 items?

 

Screenshot 2023-04-06 at 10.00.42 AM.png

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Stylead ,

     

    How is your collection created, what is the Data Row Limit you currently have set and what is the original datasource (Dataverse/SharePoint/SQL/other)?

     

    The reason I'm asking is because it seems you are running into delegation issues where not all expected items are in the collection: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/delegation-overview

  • Stylead Profile Picture
    148 on at

    Hi, @BCBuizer  thanks for responding.

     

    How is your collection created? I used this code 

    With(
     {
     wLow: 
     Sort(
     AnaMlaak,
     ID
     ),
     wHigh: 
     Sort(
     AnaMlaak,
     ID,
     SortOrder.Descending
     )
     },
     ClearCollect(
     colMyCollection,
     wLow,
     Filter(
     wHigh,
     !(ID in wLow.ID)
     )
     )
    )

     

    what is the Data Row Limit you currently have set? 2,000

    and what is the original data source? SharePoint 

     

     

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Stylead

    If you go back to @WarrenBelz 's blog Practical PowerApps where your formula came from, you will find that it only works for lists up to 4k records m

  • Stylead Profile Picture
    148 on at

    I remember it, is there any way to solve this? Do I need to change my collection code to be able to read more than 4,000?

  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    @Stylead ,
    As @Drrickryp  mentioned, this code from my Delegation blog notes the limitation of 4,000. You can collect all records like this, but read this fully and understand the Shadow ID requirement.

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard