cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mattw112IG
Impactful Individual
Impactful Individual

How to calculate hours by week

I have a SharePoint list.

People fill out a form with basically tasks they did, the week ending dates and # of hours... some may only do 1 task and others may do multiple.

In my power app I want to show cumulative hours by week ending in either a gallery or data table or something.

I've been playing around trying to use "Distinct" and filtering on user().Fullname... but this doesnt seem to work.

Do I need to do some sort of collection? Or something?

 

Thanks,

Terry

1 REPLY 1
Drrickryp
Super User
Super User

@Mattw112IG 

You could use the GroupBy() function to separate out the Week and Worker, I tend to use this in the form of a gallery/subgallery.  For the documentation of the GroupBy() function see

 https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-groupby 

For examples see

 https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/PowerApps-Gallery-SubGallery-using-Gr... 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,402)