cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kareem_Shamel
Helper III
Helper III

Calculating the Sum of a label in a collection

Greetings Comm!

 

I am trying to calculate the sum a label in a collection but the result is incorrect. Check the below scs.

 

label1.png

 

label2.png

 

Appreciating your support.

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@Kareem_Shamel 

The syntax would look like this:

Sum(Gallery1.AllItems, 
    Value(lblAmount.Text)
)

Here, lblAmount would be the name of the label in your first screenshot.

View solution in original post

1 REPLY 1
timl
Super User
Super User

@Kareem_Shamel 

The syntax would look like this:

Sum(Gallery1.AllItems, 
    Value(lblAmount.Text)
)

Here, lblAmount would be the name of the label in your first screenshot.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (3,583)