Forum Discussion
BrianDunk
Qrew Cadet
Thanks Mike, that seems to work. I thought I could get away with giving a subset of my formula and that would get me going. That is not the case. I should have presented all the rules initially as I seem to be getting boolean errors. Here is a more clear definition of my labels
"Pending" = Date/Time 2 blank and today is before Date/Time 1.
"On Time" = Date/Time 2 is 30 minutes before or 30 minutes after Date/Time 1
"Late" = Date/Time 2 is 30 minutes or more after Date/Time 1.
"No Show" = Date/Time 2 is blank and today is after Date/Time 1.
Thanks again!
------------------------------
Brian Dunk
------------------------------
"Pending" = Date/Time 2 blank and today is before Date/Time 1.
"On Time" = Date/Time 2 is 30 minutes before or 30 minutes after Date/Time 1
"Late" = Date/Time 2 is 30 minutes or more after Date/Time 1.
"No Show" = Date/Time 2 is blank and today is after Date/Time 1.
Thanks again!
------------------------------
Brian Dunk
------------------------------
MikeTamoush
3 years agoQrew Commander
If you post your code we can look, but something like this.
If(
isnull([Date2] and today()<[Date1], "Pending",
[Date2] <= [Date1] + minutes(30) or [Date2]>= [Date1] + minutes(30), "On Time",
[Date2] > [Date 1] + minutes(30) or [Date2] < [Date 1] - minutes(30), "Late",
isnull([Date2]) and today()>[Date1], "No Show")
Untested....
------------------------------
Mike Tamoush
------------------------------
If(
isnull([Date2] and today()<[Date1], "Pending",
[Date2] <= [Date1] + minutes(30) or [Date2]>= [Date1] + minutes(30), "On Time",
[Date2] > [Date 1] + minutes(30) or [Date2] < [Date 1] - minutes(30), "Late",
isnull([Date2]) and today()>[Date1], "No Show")
Untested....
------------------------------
Mike Tamoush
------------------------------
- BrianDunk3 years agoQrew CadetHey Mike, I added actual field names and keep gettng a syntax error. This is what my formula looks like to this point.
As you can see the first line seems to have an issue and when I try to save I get the "Formula Syntax Error" pop up window.
Any suggestions on how to fix?
Thanks again,
Brian
------------------------------
Brian Dunk
------------------------------- BrianDunk3 years agoQrew CadetIf(isnull([Actual Arrival Date] and today() < [Appointment Date], "Pending",
[Actual Arrival Date] <= [Appointment Date] + minutes(30) or [Actual Arrival Date]>= [Appointment Date] + minutes(30), "On Time",
[Actual Arrival Date] > [Appointment Date] + minutes(30) or [Actual Arrival Date] < [Appointment Date] - minutes(30), "Late",
isnull([Actual Arrival Date]) and today()>[Appointment Date], "No Show")
------------------------------
Brian Dunk
------------------------------- MikeTamoush3 years agoQrew CommanderSorry. Use Now() instead of Today() for date/time.
If(isnull([Actual Arrival Date] and now() < [Appointment Date], "Pending",
------------------------------
Mike Tamoush
------------------------------