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

Count if checkbox is checked

Hello Everyone,

I have two checkboxes and one label, I don't have any gallery or data source.

If i check one check box the count should be 1(In label)

if i check two check boxes the count should be 2(In label)

Please help me with the code

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @Dishen try this 

 

label Text =  If(Checkbox1.Value,1,0) + If(Checkbox1_1.Value,1,0)

 

hope this helps

 

 

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi @Dishen try this 

 

label Text =  If(Checkbox1.Value,1,0) + If(Checkbox1_1.Value,1,0)

 

hope this helps

 

 

View solution in original post

Wow ! Thanks for the quick reply and working well

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,513)