community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE
SOLVED

Inserting a Date Column using a Formula

Asteroid

I'm trying to create a  new column with a date  according to values in another column.  My conditianal formula is just giving me null values at the moment.

 

Can you see what I'm doing wrong?

 

IF Contains('3710_', [COURSE_CODE]) THEN '2017-02-27' ELSEIF  Contains('3720_', [COURSE_CODE]) THEN '2017-07-24' ELSE NULL() ENDIF

 

Thanks in advance for your help,

 

DHB.

Highlighted
Asteroid

The syntax of the contains function is incorrect, it should be:

 

IF Contains([COURSE_CODE],'3710_') THEN '2017-02-27' ELSEIF  Contains([COURSE_CODE],'3720_') THEN '2017-07-24' ELSE NULL() ENDIF

Labels