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
Suggested Answer

filter and count

(0) ShareShare
ReportReport
Posted on by 2
Hi. I have a SP List that tracks what projects a provider has responded to. The provider column is just text and the response is a Choice column of Received or Decline. I want the user to be able to select the provider from a dropdown and then number of responses of decline/receives to show.
 
I can't get the code to work. 
 
CountIf(Filter(POAP,'POAP provider' = drp_providerA.Selected.'POAP provider')And (POAP,'POAP response'.Value = "Declined"))
 
Any help would be great, thanks
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    You would need a CountRows function for this:
    CountRows(Filter(POAP,'POAP provider' = drp_providerA.Selected.'POAP providerc &&
             'POAP response'.Value = "Declined"))
    
    For the Received records count, just replace the text "Declined" with "Received".
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • WarrenBelz Profile Picture
    155,987 Most Valuable Professional on at
    Firstly, Nandit is correct, so please mark that solution - just for your future knowledge, CountIf will also work (although neither are Delegable) - your syntax was incorrect.
    CountIf(
       POAP,
       'POAP provider' = drp_providerA.Selected.'POAP provider' And 
       'POAP response'.Value = "Declined
    )
    If you want to make this Delegable (count up to your Data Row Limit)
    With(
       {
          _Data:
          Filter(
             POAP,
             'POAP provider' = drp_providerA.Selected.'POAP provider' &&
             'POAP response'.Value = "Declined"
          )
       },
       CountRows(_Data)
    )
     
  • CU21100814-0 Profile Picture
    2 on at
    Hi Nandit
     
    Your answer didn't work. 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard