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 Platform Community / Forums / Power Apps / Sum of data on Gallery...
Power Apps
Answered

Sum of data on Gallery according to checkbox chosen

(0) ShareShare
ReportReport
Posted on by 38

hi ,

i am trying to sum for data in the Gallaery according to the select checkBox but it's not working , only counting the same number i have on the checkbox row.

 

for example : 

1. mishleb - 50  - checkBox1

2. mish - 60  - checkBox1

3. misha - 70  - checkBox1

4. miheee - 80  - checkBox1 

i want to sum (1 +3+4 ) once marking checkbox 1 , 3 , 4 

how i can achive this ?

appreciate quick response and help .

 

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @rawadm,

     

    This could be done by following below steps:

    1. Set the OnCheck property of the checkbox in the template part of gallery to:

    Collect(C,{Value:ThisItem.Number})

    Notice that "Number" is the name of the column that you want to sum. 

     

    2. Insert a Label control and set its Text property to:

    Sum(C, Value)

    Capture.PNG

    Regards,

    Mona

  • rawadm Profile Picture
    38 on at

    Thank you for  your reply , i already Managed , and did the same as you mentioned  plus , on uncheck Property i added :

    Remove(C, Value)

    so in case you uncheck the checbox it will reduce the decrease  as well  .

     

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard