Alteryx Designer Desktop Discussions

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

IF Statement, Both columns are blank.

wonka1234
10 - Fireball

hi,

 

Trying to create a new column if Column A is blank then use Colb to fill, else use column A. 

But what if both columns are blank? How can I add "New col is blank if both col A and B are blank"?

 

Here is what I got:

New col = IF ColA is "" then use ColB else use ColA.

 

Thanks.

1 REPLY 1
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @wonka1234,

 

You could use:

 

IF [ColumnA] = "" AND [ColumnB] = "" THEN ""
ELSEIF [ColumnA] = "" THEN [ColumnB]
ELSE [ColumnA]
ENDIF

 

Kind regards,

Jonathan

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels