Hi folks - I get what the message is saying... but...
# general
r
Hi folks - I get what the message is saying... but struggling to understand how to fix this in an Anaytics Workbook, any ideas? They are both TO_CHAR and 'MM' format from the date.
b
you are subtracting chars
which dont have a subtract operation
use numbers for subtraction
r
Interesting and logical, it's odd since this formula worked in a Saved Search. I'll give it a shot, thanks.
b
honestly, you can also use the dates for subtraction too
r
Tried the originally and it didn't work out the way you'd think and misses the purpose of the search that was bui.t
b
the difference between two dates is a float which represents a difference in days
CURRENT_DATE is a date time, but the error messages from the validator should be enough to figure out how to convert it to a date