Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 3PWBpTutIUreXCwo3hvYs4
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

How to apply multiplication ( * operator) to the values in a single column of power apps gallery

Like (1) ShareShare
ReportReport
Posted on 16 Mar 2025 13:58:07 by
 
In order to get desired output (90.08552), I explicitly used multiplication operator '*' between values. (Example:  98 *98*93.8 /10000 = 90.08552).
My question is, can we use * operator similar to sum function to multiply values in a single column? or Is there any alternative to loop through the values to apply * operator?
 
Here is the example of a 'Sum' function in power apps: Sum(Gallery.AllItems, columnname); 
 
I tried following to get above value for top 3 rows. but the rows are dynamic.
Set(varAFTT, ForAll(GalleryLRR01.AllItems,If(Value(ThisRecord.txtAFTT.Text)>0, Value(ThisRecord.txtAFTT.Text) )) );
Set(varAFTTMul,(Index(varAFTT,1).Value*Index(varAFTT,2).Value*Index(varAFTT,3).Value)/10000);
 
Please help....
 
 
  • Suggested answer
    HaiVuVIE Profile Picture
    23 on 16 Mar 2025 at 17:35:26
    How to apply multiplication ( * operator) to the values in a single column of power apps gallery
    Hi there, you can use the sum function to sum all value in a column of a table.
    For example: if you have table like this: 
    ClearCollect(colDemo,[{firstcol:1,secondcol:2},{firstcol:1,secondcol:2},{firstcol:1,secondcol:2}])
    you can use this function to get the total value of the firstcol Sum(colDemo,firstcol).
    Have a good day!

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,442 Most Valuable Professional

Leaderboard
Loading complete