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 / Calculations within a ...
Power Apps
Unanswered

Calculations within a Galley

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone,

 

A bit new to Powerapps and I am trying to use an operator to calculate a result on 2 fields within each record (in the gallery) and then sum the column of the results.

 

I need to calculate 2 fields within the gallery and then I need to to sum them. There are 12 of these fields so didn't really want to put labels if I could avoid it as it would be additional 12 labels, and this will need to be used on multiple screens.

 

Also to note - I don't need to save any of these calculations, they are just needed to then go on to determine some further outcomes which will then be saved. 

 

e.g

 

Field1 Field2 Field3 Field4 Field5 etc etc

 2        3         4        5         6

 3        4         5        6         7

For each Row I need to perform a operation on each of these 12 fields to get a result

Field 1 * Field2, Field 1 * Field 3, Field 1 * Field4 etc

 6        8         10         12

 12      15        18         21

 

Then I need to Sum the results of each column

 

18     23     28    33

 

Thanks for your help

Categories:
I have the same question (0)
  • BelgianDev Profile Picture
    53 on at

    So you want a calculated field displayed in your gallery? 

    You can add a new label and put it's Default to "ThisItem.Value1 + ThisItem.Value2"

    I'm not sure if I understood your question correctly, but this would be my solution for from what I understand is your isse

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    If you are using a gallery and you want to calculate sum of all items in a column named Quantity, you can use below formula 

    Sum(Gallery1.AllItems, Quantity)

  • itsmejojo Profile Picture
    2 on at

    Thanks for the replies and sorry if I wasn't clear, have amended the original post.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard