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 / CountIf Sharepoint Lis...
Power Apps
Answered

CountIf Sharepoint List delegation workaround

(0) ShareShare
ReportReport
Posted on by 15

I have a Sharepoint list with a column "Status" that is either "In Process" or "Completed".

I want to return the number of "In Process" records. 

CountIf(MySPList, Status="In Process")

The issue I run into is my list has grown larger than the non-delegable limit.

I tried to sort my SP List by created date, thinking PowerApps will look at the newest records only and ignore the older ones (assuming my oldest records are all marked as "Complete" now and I dont care about counting those)

But that did not seem to do the trick. 

How do I get PowerApps to only Count the newest records in my SP List to workaround the delegation limit?

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    If the number of In Process records will stay below the data row limit, you could do this by pre-filtering the list based on Status using this formula

    CountRows(Filter(MySPList, Status="In Process"))
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @mminervini 

    In addition to @Pstork1 's suggestion (which will still give you a delegation warning), you can also use a formula like this:

       Len(Concat(Filter(MySPList, Status="In Process"), "X"))

     

    Also, to add to @Pstork1 's suggestion.  It is interesting that PowerApps provides a warning for that formula, yet this one does not:

    With({ds:Filter(MySPList, Status="In Process"))},
     CountRows(ds)
    )

     

    I hope this is helpful for you.

     

     

  • mminervini Profile Picture
    15 on at

    Duh! Should have realized I could just pre-filter...

    I actually have filtered galleries within the same app so my solution looks more like this:

    CountRows(Gallery1.Allitems)

    Thanks for the help!

  • luizhr Profile Picture
    112 on at

    Worked for me, thanks 😀 ! I used this formula: Len(Concat(Filter(MySPList, Status="In Process"), "X"))

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard