Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

IIF Statement

vujennyfer
8 - Asteroid

Hello, 

I am trying to build a column using the formula below but I'm not sure if I'm writing this correctly. I want the formula to point at column_a and read that into the new column. If column_a is null, then move on to column_b, column_c, then column_d in that order. 

 

IIF(IsNull([column_a]), [column_b], [column_c], [column_d])

2 REPLIES 2
clmc9601
13 - Pulsar
13 - Pulsar

Hi @vujennyfer,

 

I wrote it fully out instead of using IIF. Is this what you're going for?

 

IF !isnull([column_a])

THEN [column_a]

ELSEIF !isnull([column_b])

THEN [column_b]

ELSEIF !isnull([column_c])

THEN [column_c]

ELSE [column_d]

ENDIF 

 

Hope it helps! 

vujennyfer
8 - Asteroid

THANK YOU SO MUCH!! This is exactly what I was looking for 🙂 

Labels
Top Solution Authors