cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dishen
Advocate III
Advocate 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

 

 

hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

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

 

 

hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

Wow ! Thanks for the quick reply and working well

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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