Hello i have a problem with this formula : CASE WHEN TO_CHAR({trandate}+75, 'Day') ='Tuesday' THEN '1' END i dont understand why i have not a result but i have a result for TO_CHAR({trandate}+75, 'Day' . It's working only for CASE WHEN TO_CHAR({trandate}+75, 'Day') ='Wednesday' THEN '1' END
s
Stephanie Hughes
02/14/2023, 7:55 PM
There's no Else to return a result when not Tuesday.
✔️ 1
m
Marc
02/14/2023, 7:58 PM
message has been deleted
Marc
02/14/2023, 8:07 PM
There is no Else to return a result when it's not tuesday : I don't need to return another value because when it's tuesday I must have a result in my saved search but for a reason I don't know it only works when the day is wednesday
s
Stephanie Hughes
02/14/2023, 8:48 PM
It wasn't clear what you were wanting and the data you were working with (if you didn't have any transactions that were 75 days from a Tuesday that is why no results, is how I read it). It works if you say LIKE 'TUESDAY%' so there must be something weird about that word.