cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Convert a SharePoint List to Categorized or Grouped Table

I currently have a PowerApp that writes to a SharePoint List for a daily employee hour timesheets. The list that is written to has these columns:

 

Employee - Day - Hours

 

Employee is a single line text column, Day is a Date column, and Hours is a number column. The list ends up looking like:

 

John Smith - 9/01/2018 - 8

John Smith - 9/02/2018 - 8

John Smith - 9/03/2018 - 8

John Smith - 9/04/2018 - 8

John Smith - 9/05/2018 - 8

John Smith - 9/06/2018 - 0

John Smith - 9/07/2018 - 0

Jane Doe - 9/01/2018 - 7

Jane  Doe - 9/02/2018 - 7

Jane  Doe - 9/03/2018 - 7

Jane  Doe - 9/04/2018 - 7

Jane  Doe - 9/05/2018 - 7

Jane  Doe - 9/06/2018 - 0

Jane  Doe - 9/07/2018 - 0

 

I need to convert this to an html table or SP list that has these columns:

 

Employee - Sat - Sun - Mon - Tues - Wed - Thurs - Fri - Total

 

The rows would read:

 

John Smith - 8 - 8 - 8 - 8 - 8 - 0 - 0 - 40

Jane Doe - 7 - 7 - 7 - 7 - 7 - 0 - 0 - 35

 

I plan to use the table in a PDF report to show the boss all employee's weekly hours. This needs to be dynamic to work for every week of the year. Does anyone have an idea of how to tackle this? I am open to any suggestions. Thanks in advance.

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

First of all, I want to know the working hours of the people recorded in the SharePoint List that you provided are from which day of the week. Starting on Monday, or starting on Sunday?

Then I'm not sure if the list you provided is updated once a week, and the content inside is only containing the content of this update?

In addition, the item in the list you provide is very strict, including the working time of each person for seven days a week, and is it continuous?

Please provide more details and maybe we could provide a suitable workaround for you.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
GabrielStJohn
Administrator
Administrator

Hey, @Anonymous!

Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Anonymous
Not applicable

Thanks for the response. I hope I can give you the info you need...

 

The working hours are 4am - 10pm. People can work anywhere between 2 and 12 hours.

 

People work evey day of the week and our work week starts on Saturday.

 

The content is updated daily, at the end of each shift. I would like the table to show the content for the current week and have an easy way to switch to last week, and the previous week. I am trying to avoid having 365 columns, one for each day of the year.

 

The time will not be very strict or continuous. It could fluctuate daily.

 

Thanks again for any help you might provide.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (43,318)