Now that it's live, don't forget to accept your certification badge on Credly today! Learn more here.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email for assistance.

Alteryx Designer Discussions

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

Combining columns if rows are blank

5 - Atom

I want to create a column that combines multiple columns using some if statements.


My goal is to end up with one [Combined] column that looks at [Revision] if it is blank or null than check [Purchase order text] is it is null or blank and if all of those are null or blank then pull in [Partner Object] value. If [Revision] has a value I want to add the Revision number.


IF IsNull([Revision]) OR IsEmpty([Revision]) AND IsNull([Purchase order text])

THEN [Partner object]

ELSE IF IsNull([Revision]) OR IsEmpty([Revision])

THEN [Purchase order text]

ELSE [Revision]





12 - Quasar
12 - Quasar

hi @jberistain 

From first look, it seems that there is an error in the formula.

There are 2 nested if loops, so you need to add another "Endif"

Alternatively, instead of having "ELSE IF" on the 3rd row you should use "ELSEIF". 


5 - Atom

IIF(!IsNull([Revision]) AND [Revision]!="",[Revision],
IIF(!IsNull([Purchase order text]),[Purchase order text],[Partner object]))


I think Solved: Re: Function similar to "Coalesce" - Alteryx Community actually worked for this.  @JohnJPS


5 - Atom

I looked up this other post and I think the correction I made using their solution worked. Thank you for taking a look and replying to my question!