In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more 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