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 / Sharepoint List / Powe...
Power Apps
Answered

Sharepoint List / Power Apps - Delegation Error when using Count.

(0) ShareShare
ReportReport
Posted on by 23

Hi, 

 

I have a source that has a list of dates in "Date" (Stored in "dd/mm/yyyy" format). I also have a calculated column called "Month Completed" (Stored in "mmmm yyyy" format). 

 

I am trying to create a label with a count to count the current completed tasks within the month. However, I get a delegation error. As this list will likely get larger than 2000 I am trying to resolve the delegation warning. 

 

Delegation warning is coming from this part of the code "Month(Date) = Month(Now()) &&"

 

Code: 

CountRows(
 Filter(
 'Site Audits',
 Month(Date) = Month(Now()) && ( If(
 LookUp(
 'Engineer List',
 EngineerName = User().FullName
 ).Title = "Service Manager",
 Region = LookUp(
 'Engineer List',
 EngineerName = User().FullName
 ).Region,
 Title = User().FullName
 ) )
 )
)

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    Hi @Jcurtis260 ,
    Almost every element of what you have is not Delegable (I assume you are using SharePoint) -

    • CountRows(),
    • Month() used on your date field
    • The relational Lookup to 'Engineer List'

    I cannot test his presently and all it does is "mask" the Delegation issue if you are working with a big list

    With(
     {
     wRole:
     LookUp(
     'Engineer List',
     EngineerName = User().FullName
     ),
     wMonth: Month(Now())
     },
     With(
     {
     wData:
     Filter(
     'Site Audits',
     wRole.Title <> "Service Manager" ||
     Region = wRole.Region
     )
     },
     CountRows(
     Filter(
     wData,
     Month(Date) = wMonth
     )
     )
     )
    )

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard