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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,925)