cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Sum of a Collection with Conditions

Hi All,

 

I asked a question similar to this a few days ago but without the conditionality.

I was wondering if it is possible to SUM a column of a Collection depending on other values within the Collection?

 

eg. I would like to be able to SUM all the hours of Team Member1 and Team Member2 seperatly.

 

Total hours for Team Member1 should be 8.5 and 12.5 for Team Member2.

 

hourscollection.PNG

 

Any help would be great, thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate I
Advocate I

Re: Sum of a Collection with Conditions

Figured it just after I posted this.

A Filter should be used within the sum.

 

Sum(Filter(HoursCollection,TeamMember = LoggingName.Selected.Value),Hours)

*LoggingName is the name of the dropdown.

 

View solution in original post

1 REPLY 1
Highlighted
Advocate I
Advocate I

Re: Sum of a Collection with Conditions

Figured it just after I posted this.

A Filter should be used within the sum.

 

Sum(Filter(HoursCollection,TeamMember = LoggingName.Selected.Value),Hours)

*LoggingName is the name of the dropdown.

 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,888)