Free Trial

Alteryx Designer Desktop Discussions

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

Multiple ISNull()

dlopez
8 - Asteroid

Simple formula that's killing me, I need a new date column that pulls in values from three date columns when one is null, date order matters so I'll put them in order below

 

New Date ColumnDate 1Date 2Date 3
01/05/201801/05/2018  
05/16/2017 05/16/2017 
05/09/201705/09/2017  
11/21/2018  11/21/2018

 

My thought was something like 

New Date Column = 

IF ISNull(Date 1)

THEN (Date 2) 

ELSEIF ISNull(Date2)

THEN (Date 3) 

else (Date 1)

endif

 

I know I messing that up a bit but any help would be greatly appreciated. 

 

Cheers!

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @dlopez I came up with an alternative approach let me know what you think? I also amended your code to work for the provided example.

 

Dates_051120202.JPG

dlopez
8 - Asteroid

@JosephSerpis 

 

Worked like a charm, thanks Joseph!

 

Cheers, 

david

Hello @dlopez 

 

You can achieve your goal in many ways:

 

Formula:

christine_assaad_0-1604616287955.png

 

Transpose - Filter and Join for more robust solution in case you have more than 3 fields

christine_assaad_1-1604616426240.png

 

Labels
Top Solution Authors