cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

GroupBy and Sum, maybe?

I have this Gallery showing allocation for each employee:
P6.png

I want the Gallery to show the names only once and add up the allocation, so for "Rasmus" the allocation should show 160%

How can I achieve this?

Thaks guys.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Anonymous 

You will need to use the GroupBy function on this and then sum the records of each group.

 

   AddColumns(GroupBy(yourData, "NameColumn", "_recs"), "_sum", Sum(_recs, AllocationColumn))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@Anonymous 

You will need to use the GroupBy function on this and then sum the records of each group.

 

   AddColumns(GroupBy(yourData, "NameColumn", "_recs"), "_sum", Sum(_recs, AllocationColumn))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Perfect, thank you.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

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 Solution Authors
Top Kudoed Authors
Users online (2,516)