Alteryx Designer Desktop Discussions

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

if statement with isnull in INDB formula

Shank
8 - Asteroid

Hi All,

 

Can some one help me with INDB formula.

 

Create a new column with below condition

 

if Column A is null then take Column B else Column A end

 

i tried with below formula but it did not work.

 

if isNull("A")
then "B"
else "A"
end

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @Shank ,

 

Which Database are you connecting into?

 

You can try this two examples:

mySQL: IFNULL([A], [B])

SQL Server: isNULL([A], [B])

 

https://www.w3schools.com/sql/sql_isnull.asp

 

Best,

Fernando Vizcaino

Shank
8 - Asteroid

@fmvizcaino 

 

Thanks you so much for your help this is what i was looking for 🙂

Labels