web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

CountIf Error

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

Why is this formula not working?

I want on AppStart the formula to count the number of items in an SPList column and return it to a PA label field. I'm getting an error on the ' = ' sign.

 

CountIf(PendingReviewCollection,PendingReview="Pending",true)

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    @Phineas  change CountIf(PendingReviewCollection,PendingReview="Pending",true)  to CountIf(PendingReviewCollection,PendingReview="Pending")

  • kameshm Profile Picture
    59 on at

    Hi @Phineas ,
    What is the column type for "PendingReview"?. If the column type is Choice, you have to change the countIF formula like below.

    CountIf(PendingReviewCollection,PendingReview.Value="Pending")
  • Verified answer
    Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Hello @Phineas ,

     

    Can you try both of these formulas

    Set(VarCountIf,CountIf(PendingReviewCollection,PendingReview="Pending"))

     

    Set(VarCountIf,CountIf(PendingReviewCollection,PendingReview.value="Pending"))

     

    Se if any of this works

     

    🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard