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 / Count rows in SharePoi...
Power Apps
Unanswered

Count rows in SharePoint list choice column without delegation.

(0) ShareShare
ReportReport
Posted on by 321

Hi,

 

In my App I have attached to a SharePoint list which contains a list of workitems. I want a label in my App which counts the Status (choice) column by specific status (Not Started) in this case, but the code I am using has delegation..

 

Countif(Listname, Status.Value = "Not Started")

 

Is there a way to achieve this without delegation?

 

Thanks

 

 

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @JimboSey ,

     

    Unfortunately, "CountRows()" and "CountIf()" are not delegable.

     

    A workaround would be to first collect the data in a local collection then get its number of items.

     

    Hope this was helpful to you.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @JimboSey 

    Please try the following,

    CountRows(Filter(Listname, Status.Value = "Not Started"))

     

    Please Note: This will work only for a maximum of 2000 records. If you have more than that, you will have to collect them in chucks of 2000 into collections and then combine them into one big collection and then do a CountRows on that big collection.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard