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
Unanswered

CountIf

(0) ShareShare
ReportReport
Posted on by 3

Hello, with this code:

UpdateContext({nbr_records : CountIf(Items_per_Event;(Item_ID =Value(ThisItem.ID) && Event_ID =Value(globalEvent_Id)))});;

    If(nbr_records = 0; I get the following warning: Warning about delegation. The highlighted part of this formula may not work properly for large datasets. The process "Countif" is carried out by this Connector not supported.

 

In addition, some of the items can still be added, although an appointment takes place at the same time. Is that because of that?

Categories:
  • timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Hi @Emil1887 

    The only data source with delegation support for the CountIf function is Dataverse. Can you confirm the data source that you're using?

  • Emil1887 Profile Picture
    3 on at

    I use a SharePoint list. It also works, just not reliably.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Emil1887,

    Well, it is known that CountIf() function is nondelegable in SharePoint.

    If you have less than 2000 records, just ignore that warning message, you could increase the row limit from 500 to 2000 at max by Settings >General

    vqiaqimsft_0-1708491214027.png

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard