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

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
    153,034 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

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