This will probably be obvious in retrospect, but I cannot figure out how to generate a chart based on the data I have. I have data in the following format:
Name | Store | Date | TimeIn | TimeOut |
---|
Alice | 0001 | 1/5/2024 | 6:00 | 12:00 |
Bob | 0001 | 1/5/2024 | 7:00 | 11:00 |
Charlie | 0001 | 1/5/2024 | 7:00 | 9:00 |
Denise | 0001 | 1/5/2024 | 8:00 | 12:00 |
| | | | |
What I need to do is get a bar chart showing the number of employees on shift per hour, something like this:
The chart needs to be cumulative across all days in the range so they can get a snapshot of what the staffing curve looks like.
The employee only counts if they work at least 15 minutes of the designated hour, so Alice will count only for 6:00 am to 11:00 am. Short of crafting an ETL that calculates if each employee is active for each hour of the workday (which would cause the dataset to balloon), how can I get a bar chart that shows this?