I'm using the following formula that I was given to an earlier question I had:
if time({table.opendatetime}) in time(0,0,0) to time(7,59,59) then "Third Shift" else
if time({table.opendatetime}) in time(8,0,0) to time(15,59,59) then "First Shift" else
if time({table.opendatetime}) in time(16,0,0) to time(23,59,59) then "Second Shift"
The formula worked fine, but now I need to somehow change the formula to work with the following criteria:
Weekends = Saturday 8:00am - Monday 7:00am
FirstShift = Mondays 7:00am - 16:00, Tuesday to Friday 8:00am - 16:00
SecondShift = Monday to Friday 18:00 - 24:00
ThirdShift = Tuesday to Saturday 00:00 - 7:00am
So, now I need to change the formula on four groups. I guess I need to use the
ayOfTheWeek function somehow.
Here is some sample data:
3/1/2005 6:47
3/1/2005 8:22
3/1/2005 13:31
3/1/2005 13:37
3/1/2005 14:46
3/1/2005 21:50
3/1/2005 22:30
3/2/2005 4:15
3/2/2005 4:20
3/2/2005 5:54
3/2/2005 8:57
3/2/2005 11:51
3/2/2005 14:37
3/2/2005 20:06
3/2/2005 22:54
3/2/2005 22:54
3/2/2005 23:02
3/3/2005 5:06
3/3/2005 10:17
3/3/2005 12:30
3/3/2005 21:43
if time({table.opendatetime}) in time(0,0,0) to time(7,59,59) then "Third Shift" else
if time({table.opendatetime}) in time(8,0,0) to time(15,59,59) then "First Shift" else
if time({table.opendatetime}) in time(16,0,0) to time(23,59,59) then "Second Shift"
The formula worked fine, but now I need to somehow change the formula to work with the following criteria:
Weekends = Saturday 8:00am - Monday 7:00am
FirstShift = Mondays 7:00am - 16:00, Tuesday to Friday 8:00am - 16:00
SecondShift = Monday to Friday 18:00 - 24:00
ThirdShift = Tuesday to Saturday 00:00 - 7:00am
So, now I need to change the formula on four groups. I guess I need to use the
Here is some sample data:
3/1/2005 6:47
3/1/2005 8:22
3/1/2005 13:31
3/1/2005 13:37
3/1/2005 14:46
3/1/2005 21:50
3/1/2005 22:30
3/2/2005 4:15
3/2/2005 4:20
3/2/2005 5:54
3/2/2005 8:57
3/2/2005 11:51
3/2/2005 14:37
3/2/2005 20:06
3/2/2005 22:54
3/2/2005 22:54
3/2/2005 23:02
3/3/2005 5:06
3/3/2005 10:17
3/3/2005 12:30
3/3/2005 21:43