cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
billyboy4614
Level: Powered On

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
Community Support Team
Community Support Team

Re: Convert a SharePoint List to Categorized or Grouped Table

Hi @billyboy4614,

 

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.
Administrator
Administrator

Re: Convert a SharePoint List to Categorized or Grouped Table

Hey, @billyboy4614!

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
Microsoft Flow Community Manager
billyboy4614
Level: Powered On

Re: Convert a SharePoint List to Categorized or Grouped Table

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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 363 members 4,450 guests
Please welcome our newest community members: