Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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