cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Counter based on filter

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")

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @powerapps890 ,

 

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

 

Community Support Team _ Jeffer Ni

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

View solution in original post

2 REPLIES 2
v-jefferni
Community Support
Community Support

Hi @powerapps890 ,

 

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

 

Community Support Team _ Jeffer Ni

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

v-jefferni
Community Support
Community Support

Hi @powerapps890 ,

 

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

Community Support Team _ Jeffer Ni

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,806)