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.
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.
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!
Flow Community Manager
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.
Check out the announcement of Power Platform content at Microsoft Ignite!
Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.
Features releasing from October 2020 through March 2021