Probably a noob question but how do you do a compa...
# suiteanalytics
a
Probably a noob question but how do you do a comparison of a date against TODAY in SuiteAnalytics? In Saved Searches I would just do {today} - {date1} and it would show the number of days before today the Date1 is....however, {today} doesn't work in SuiteAnalytics
n
use CURRENT_DATE
Well that was just a part of the solution when I try to do a simple Current_date - {trandate} when I validate I get
"Formula definitions that use DATETIME values with MINUS operations are currently not supported when the return type is INTERVALDS. Use CAST_TO_DATE(argument of DATETIME type) instead."
a
Hi @Netsuite Tragic thanks. I forgot to follow up that I figured it out. You are exactly right. Had to do CAST_TO_DATE(CURRENT_DATE) to get it to work