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 / Calculating a Total Su...
Power Apps
Answered

Calculating a Total Sum from Labels inside gallery

(0) ShareShare
ReportReport
Posted on by 14,629 Super User 2026 Season 1

Hey All

 

I have a gallery where i show items of a collection.

I have a single price value and a dropdown where i can pick numbers from 1-5.

 

I have a total field inside that gallery that shows the total price (so the single price from above * the value of the dropdown) this i show in another label.

 

I want to add all the total prices of the label called txttotalsum (from all items inside the gallery) and show the result in a text label outside of the gallery where i wanna see the total price of my shopping chart.

 

How can i achieve this?

mmbr1606_0-1701859989073.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    i found it out by myself

     

    for all having similar questions:

     

    i put this in the Text of the label outside the gallery.

    "Total amount"&Sum(galChart.AllItems, Value(txttotalsum.Text))

     

     

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @mmbr1606 

     

    Try this formula in Text Property,

     

    Sum(
    Gallery1.AllItems, // Gallery1.AllItems represents all the items in the gallery
    Value(txttotalsum.Text) // Assuming txttotalsum.Text holds the total price of each item in the gallery
    )

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • FazalUrrehman Profile Picture
    131 on at

    Try this 

    In Label of total Value outside Gallery :

    Sum( <Gallery Name>.AllItems , <Label Name> )

     

    For Example :

    Sum(Gallery1.AllItems ,Label1)

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard