cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
E-Mac
Level: Powered On

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
E-Mac
Level: Powered On

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
E-Mac
Level: Powered On

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
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,278)