Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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
  • CU21100814-0 Profile Picture
    2 on at
    filter and count
    Hi Nandit
     
    Your answer didn't work. 
  • WarrenBelz Profile Picture
    146,651 Most Valuable Professional on at
    filter and count
    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)
    )
     
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    filter and count
     
    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!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard