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 Apps
Answered

Sum if true...

(0) ShareShare
ReportReport
Posted on by 802

Hi

 

I have a series of checkboxes that I am assigning values to in a label, by doing the following...

 

If('checkbox1'.Value = true, "4", "0", 'checkbox2'.Value = true, "4", "0")

 

What I want to do is, if the checkbox value is set to true, add-up (or sum) all the true values (which are 4) to bring a total. So in the above example, this would equal 8 if both are true. 

 

Any ideas please?

 

Thanks

K. 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,271 Super User 2026 Season 1 on at

    @Kosenurm 

    Something like this should work..

    Sum(
     If('checkbox1'.Value, 4),
     If('checkbox2'.Value, 4)
    )
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard