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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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