cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jakegolden
Helper III
Helper III

Assigning a value to a dropdown selection

Hello,

 

I am currently trying to create a method that will basically add up all my drop down boxes that have "yes" selected.

I have about 25 dropdown boxes that contain the choices of (Yes, No, N/A) I need the ability to capture all the "yes" and assign it to a value. So if theres 15 boxes with "yes" I need an output that will display 15.

 

Is this possible?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Jakegolden ,

You would need to hard-code this

0 +
If(
   Dropdown1.Selected.Value = "Yes",
   1
) +
If(
   Dropdown2.Selected.Value = "Yes",
   1
) +
If(
   Dropdown3.Selected.Value = "Yes",
   1
) + . . . . .

and so on for the rest.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @Jakegolden ,

You would need to hard-code this

0 +
If(
   Dropdown1.Selected.Value = "Yes",
   1
) +
If(
   Dropdown2.Selected.Value = "Yes",
   1
) +
If(
   Dropdown3.Selected.Value = "Yes",
   1
) + . . . . .

and so on for the rest.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,577)