Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

If Statement with DateTimeToday Function

$
0
0

I am really new to Alteryx.

I am adding  new field to give me "Created Last 30 Days", "Created Last 60 Days", "Created Last 90 Days", "90+Days" in one column based of the create date.

I am receiving a "Malformed If Statement" error for my formula below:

 

 Capture.PNG

 

IF [OppCreateDate]=DateTimeToday()<=30
THEN "Created Last 30 Days"
ELSEIF [OppCreateDate]=DateTimeToday()<=60
THEN "Created Last 60 Days"
ELSEIF [OppCreateDate]=DateTimeToday()<=90
THEN "Created Last 90 Days"
ElseIF [OppCreateDate]=datetimetoday()>=90
THEN "90+ Days"
EndIF

 

What am I not seeing here?


Viewing all articles
Browse latest Browse all 4999

Trending Articles