Hi,
I need oprepare charts to evaluate the up time and down time of the machine.
The operator has a tablet and logs the type of activity.
The data looks like this:
Activity_Type_All | Activity_Start_Date&Time | Activity_End_Date&Time | Activity_Duration_HoursDecimalFormat |
Productive | 05/09/2016 06:29 | 05/09/2016 06:30 | 0.02 |
Unproductive | 05/09/2016 06:30 | 05/09/2016 09:00 | 2.5 |
Productive | 05/09/2016 09:00 | 05/09/2016 16:43 | 7.72 |
Unproductive | 05/09/2016 16:43 | 05/09/2016 17:51 | 1.13 |
Productive | 05/09/2016 17:51 | 05/09/2016 17:59 | 0.13 |
Productive | 05/09/2016 17:59 | 05/09/2016 21:48 | 3.82 |
Unproductive | 05/09/2016 21:48 | 05/09/2016 21:55 | 0.12 |
Unproductive | 05/09/2016 21:55 | 06/09/2016 06:32 | 8.62 |
The shifts are as follows:
Hour | Minute | |
Shift 1 | 6 | 30 |
Shift 2 | 14 | 30 |
Shift 3 | 22 | 30 |
To be able to make charts that evaluate Shifts and days I would need to split the activity when going from one shift to the other or when it passes midnight.
So I would need to repalce row 3:
Productive | 05/09/2016 09:00 | 05/09/2016 16:43 | 7.72 |
with the following two rows:
Productive | 05/09/2016 09:00 | 05/09/2016 14:30 | 5.5 |
Productive | 05/09/2016 14:30 | 05/09/2016 16:43 | 2.22 |
The activity that is happening at midnight, should also split.
Thank you,
Nandor