Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

if statement with isnull in INDB formula

Shank
アステロイド

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件の返信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
アステロイド

@fmvizcaino 

 

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

ラベル