Free Trial

Alteryx Designer Desktop Discussions

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

Create a new column based on if column X has a value

mlim0806
7 - Meteor

Hi community, 

 

I'm trying to find a formula that will look at a date column, and if there is a date value in the cell, then create a new column that says 'yes' or 'no'.

 

In the sample dataset attached, I have a tab for the input data, and I want to create a new 'yes/no' column, "if there is a value in the date column, then yes, else no". The output tab is the desired output. I've tried the if contains formula, but can't figure out how to call out "date value" or "any value".   

 

(I have 2020.2 version, and cannot open some features in the newer versions)

2 REPLIES 2
caltang
17 - Castor
17 - Castor

Do it this way:

image.png

 

IF IsNull([Date])
THEN "No"
ELSE "Yes"
ENDIF
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
mlim0806
7 - Meteor

that worked! Much easier to look for the nulls vs. a value, thank you!

Labels
Top Solution Authors