Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Add if Null to Formula - Parse error Malformed function

CherylH
8 - Asteroid

This formula works:   IF [Right_Amazon Siebel Brand] THEN [Amazon Siebel Brand] ELSE [Right_Amazon Siebel Brand] ENDIF

 

However: Want to add if is null, but this formula does not work, balance of formula turns black.  What is wrong with formula?

 

IF (isnull([Right_Amazon Siebel Brand]) THEN [Amazon Siebel Brand] ELSE [Right_Amazon Siebel Brand] ENDIF

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @CherylH 

 

Try this

 

IF isnull([Right_Amazon Siebel Brand]) 
THEN [Amazon Siebel Brand] 
ELSE [Right_Amazon Siebel Brand] ENDIF

There was a extra ( in your pasted formula.

 

atcodedog05
22 - Nova
22 - Nova

Hi @CherylH 

 

You can also try

IF isempty(Trim([Right_Amazon Siebel Brand]," ")) 
THEN [Amazon Siebel Brand] 
ELSE [Right_Amazon Siebel Brand] ENDIF

 So that it removes empty blanks also. 

CherylH
8 - Asteroid

Thank you so much it worked.  What a difference a ( makes.   Knew I was close but could not get it.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @CherylH 

 

Cheers and Happy Analyzing 😀

Labels