cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rbalza
Helper IV
Helper IV

Sum of collection based on selection in the gallery

Hi everyone, I am new to using powerapps. How can I sum the total of selected values in the gallery based on the collection when I hit the add button? Thanks, guys! Cheers.

rbalza_0-1629427184429.png

 

Here's my add button code.

Collect(
    Col1,
    {
        'Job Category': DataCardValue31.SelectedText,
        'Entity Type': DataCardValue39.SelectedText,
        'Job Type': DataCardValue40.SelectedText,
        'Standard Invoice': DataCardValue4.Text,
        'Min Fee': DataCardValue5.Text,
        Qty: DataCardValue25.Text,
        'Complexity Value': DataCardValue3.Text,
        'Nominal Value': Value(DataCardValue5.Text) * Value(DataCardValue25.Text),
        Total: Value(DataCardValue5.Text) * Value(DataCardValue25.Text) * Value(DataCardValue3.Text)
    }
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
rbalza
Helper IV
Helper IV

Solved: I used 

"Text: " & Sum(Col1,Total)

View solution in original post

1 REPLY 1
rbalza
Helper IV
Helper IV

Solved: I used 

"Text: " & Sum(Col1,Total)

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 (1,876)