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 Apps
Answered

delegation error

(0) ShareShare
ReportReport
Posted on by 19
Getting delegation warning when I run the below code on a choice column. The data source is SharePoint 
 
What have I tried..:
pushing the limit up to 2000
using the With()
tried using !=, and !(Status.Value = "Closed")
 
None of the above worked. Can someone explain to me what I'm missing here?
 
Code:
With(
    {
        _overdue: Filter(
            EnvironmentalPermits,
            Status.Value <>"Closed" && ExpirationDate < Today()
        )
    },
    CountRows(_overdue)
)
 
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at
    That is because Not is not Delegable - you have used not equals <>. You are going to need to specify all the other Status values you want (example)
    With(
       {
          _overdue: Filter(
             EnvironmentalPermits,
             (
                Status.Value = "In Progress" ||
                Status.Value = "Pending" ||
                Status.Value = "Opened"
             ) && 
             ExpirationDate < Today()
          )
       },
       CountRows(_overdue)
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    Amol-Kavnekar Profile Picture
    125 on at
     

    In SharePoint, delegation for Choice columns is limited. The operator <> (not equal) is not delegable for Choice fields, and neither is CountRows() over a non‑delegable filter. So even though your filter works on small data sets, it won’t delegate for larger lists.

    Also, Today() is delegable, but once the filter uses a non‑delegable operator, the whole filter becomes non‑delegable.

    You can find more about delegable functions here - https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-sharepoint-online#power-apps-delegable-functions-and-operations-for-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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard