I have criteria of a saved search that's basicall...
# suiteanalytics
g
I have criteria of a saved search that's basically
when {cust_date_field} - {today} BETWEEN 0 and 14 then 1 else 0
- question I have is would this be possible using
>0 and <=14
in the statement in place of the "between 0 and 14"? I tried and it kept failing - was thinking maybe someone had experience and could share some thoughts as to if I was doing something wrong.
g
You'd need to repeat the subtraction statement twice to use
>0 and <=14
Something more like:
case
when {cust_date_field} - {today} > 0 and
{cust_date_field} - {today} <=14
then 1
else 0
end
Or just say BETWEEN 0 and 15.
g
@George McMullen Ahhh, well that makes perfect sense. Thanks! Even though I have it working using "BETWEEN", I was still curious about how to accomplish the same result with this method. Appreciate the response!
👍 2