Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
ActionDateTime | Employee |
02/04/2020 08:03 | JONES |
02/04/2020 08:13 | JONES |
02/04/2020 15:38 | JONES |
02/04/2020 16:23 | JONES |
02/04/2020 11:00 | SMITH |
02/04/2020 11:07 | SMITH |
02/04/2020 11:05 | SMITH |
02/04/2020 18:05 | SMITH |
03/04/2020 07:45 | JONES |
03/04/2020 13:58 | SMITH |
I have Shift Times as Follows
Monday- Thursday the Day Shift Works
07:30 to 16:00
on a Friday they work 07:30 - 14:30
The Lates Shift Works
10:45am to 20:30 Mon- Thurs and do not work Fridays
I wanted to create a column in my load script called SHIFT and it will either be 'DAY' or 'LATE' using the Max and Min ActionDateTime each day for each worker determine what shift they are on.
For example if it is Mon-Thurs and the Min(ActionDateTime) is between 07:30 - 10:45 then they are on the Day Shift if the Day is Mon-Thurs Min(ActionDateTime) is between 10:45 - noon then they are on the Late Shift.
The shift a person is on can change daily and I want to use this calcualtion throught my application not just in an Expression. I want to use it in filters etc..I want to look at lapsed time between first scan and shift start time and last scan and shift end time
Please can you advise.
Do you have a question?