Forum Discussion
Working hours considering overlap times
Sorry for the delay, I was out of office on friday.
Responding to your questions:
OK, so the real working hours would be the sum of (End_Time - Start_Time) for all activities per user and day, correct?
- Correct, but the problem that I have is that if one person performs 2 or more tasks durning the same (or part of the) time, I should only consider the amount of time once, but sum the total SKU's processed.
do you have data on several days? (I guess so)
- Yes i do, usually I work this data on Excel on periods of 5 days (weekly data) or 20-22 days (monthly data)
Can you show the structure of the tables in your model (in yo do not share the pbix)?
I tried to make something on power BI but it ended being pretty messy, here is part of the raw data extracted from the data base:
| TASK_ID | START_DATE | END_DATE | SKU | UNITS | USER |
| TASK1 | 07-12-2018 14:17 | 07-12-2018 14:58 | 2 | 3 | USER1 |
| TASK2 | 07-12-2018 14:24 | 07-12-2018 14:41 | 2 | 2 | USER1 |
| TASK3 | 07-12-2018 14:25 | 07-12-2018 14:43 | 1 | 8 | USER1 |
| TASK4 | 07-12-2018 14:25 | 07-12-2018 14:35 | 1 | 1 | USER2 |
| TASK5 | 07-12-2018 14:28 | 07-12-2018 14:35 | 1 | 1 | USER3 |
| TASK6 | 07-12-2018 14:30 | 07-12-2018 14:32 | 2 | 2 | USER4 |
| TASK7 | 07-12-2018 14:30 | 07-12-2018 14:49 | 2 | 2 | USER5 |
| TASK8 | 07-12-2018 14:40 | 07-12-2018 14:52 | 2 | 5 | USER2 |
| TASK9 | 07-12-2018 14:45 | 07-12-2018 14:59 | 2 | 2 | USER1 |
| TASK10 | 07-12-2018 14:49 | 07-12-2018 15:01 | 1 | 1 | USER3 |
| TASK11 | 07-12-2018 14:49 | 07-12-2018 15:35 | 1 | 1 | USER5 |
For example, for task 1, 2, 3 and 9 they were done by the same "USER1",
therefore i should add the total amount of time worked (end - start date) but without the overlaps. which would be 14:59 - 14:17 = 42 minutes.
Besides, in total he worked over 7 SKU's, so the productivity would be 7 / 42 (skus/min) -> 10 sku's per hour
On the other side, for USER2, he did 2 tasks without any overlap, so the total time would be the sum of the working hours.
And therefore the productivity would be: (1+2) /( (14:52 - 14:40) + (14:35 - 14:25))
Once again thank you for your help!
Anonymous
Ok, I think I get it. Could you post some more data including more than one day?
- Anonymous7 years agoNot applicable
I already found a way to consider only times between working hours (09:00 - 12:00 and 13:15 - 17:15) but I am missing the part on how to consider time without the overlaps.
Once again thank you for your help!