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 Africa Challenge 2022

Power Apps Africa Challenge

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

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,520)