cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,879)