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.

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

Labels
Top Solution Authors