I'm trying to get a conditional date function to w...
# administration
e
I'm trying to get a conditional date function to work within a saved search, the formula currently is Case WHEN {today} - {transhippeddate} <=14 Then 'Green' ELSE END This is returning 0 results but the {Today} - {transhippeddate} standalone returns numeric values. Any ideas?
c
This case when statement is missing a value for the ELSE, so the formula doesn't know what to do with the results for anything that isn't 'Green'.
šŸ‘ 1
Also you might want to make sure you are using a Formula (text) field and wrap this case when statement in TO_CHAR. As an example, TO_CHAR(CASE WHEN {today} - {shipdate} <=14 THEN 'Green' ELSE 'Red' END)