Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Inserting a Date Column using a Formula

DHB
8 - 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.

1 REPLY 1
rahul1011
8 - 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
Top Solution Authors