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 / How to sum a Gallery C...
Power Apps
Answered

How to sum a Gallery Column

(1) ShareShare
ReportReport
Posted on by 119

Hello Community,

 

This question might be asked many times but my case is a bit complexPic1.PNG

 

I need to Sum up Total Price, 

The formula for Total Price is 

 

ThisItem.'Trade Price'*SearchCart_TextInput_Quantity.Text*(100-SearchCart_TextInput_Discount)/100

 

 

Item list from this gallery is from a Collection where each items are manually added (Not a filter).

And it is a nested table (This is another issue I encounter, not very sure how to convert to normal table)

pic2.PNG

 

Any help appreciated,

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    CaiChicken Profile Picture
    119 on at

    Solution Found! 

    Sum(ImportCart_Gallery_Cart.AllItems, ImportCart_Label_TotalPrice)

     

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @CaiChicken 

    Is the Total Price being displayed using a label called Import_Label_TotalPrice?

     

    If yes, please put this code in the Text property of a new label to display the SUM.

    Sum( 
     AddColumns(
     Gallery1.AllItems,
     "TotalPrice",
     Value(Import_Label_TotalPrice.Text)
     ),
     "TotalPrice"
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • chairat Profile Picture
    64 on at

    Thank you so much @CaiChicken 😍

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