Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Create a new field based on a date

PhilAnthony
5 - Atom

I am trying to create a new field using conditional logic.  One of the conditions is that if the date in a field is less than the date specified the new field should have a particular value.  My less than logic is not working, I am getting an invalid type in operator error.  I am new to alteryx and I think I am making a simple syntax error, but I can't find a solution anywhere else.  Thanks for the help

 

Phil2017-03-29_9-31-35.png

2 REPLIES 2
DataBlender
11 - Bolide

Hi @PhilAnthony, try putting the dates in inverted commas.

 

IF [Return Term 1] = '0645' THEN 'ENR'
ELSEIF [Confer Dt] < '2009-04-01' THEN 'GRD'
ELSE 'LFT'
ENDIF
PhilAnthony
5 - Atom

Thank you.  Problem solved.

 

Labels