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 Platform Community / Forums / Power Apps / Counter based on filter
Power Apps
Answered

Counter based on filter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a dropdown box that is populated by a column with scenarios 1-14. In my datasource I have 500 items that are tagged as sceanrio 1-14. I need an if statement that will show the counter based on the scenario they selected in the dropdown box. This is what I have currently, the first part of the formula works. I just don't know about the if statement for all 14 and the second part of the formula. CountIf(GUAT, Scenario = "Scenario 1") - CountIf(GUATResponses2, Title=vUserMail && Scenario="Scenario")

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Do you want to count records bases on the scenario selected in the Dropdown?

    If you do, try below formula:

     

    CountIf(GUAT, Scenario = ScenarioDropDown.Selected.Value)

     

    About the second part of the formula, could you please share more details about your formula? What was the error prompt?  What is the "Scenario" part represents?

     

    Best regards,
    Community Support Team _ Jeffer Ni

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Have you tried the formula in your working app? If you have any further question, please let us know.

     

    If this post helps, please consider Accept it as the solution to help the other members find it.

     

     

    Best regards,
    Community Support Team _ Jeffer Ni

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard