Alteryx Designer Desktop Discussions

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

Formula Question for multiple columns

lac
7 - Meteor

Hello,

 

Can someone please help me?  Trying to figure out a way in Alteryx to do this same thing this excel formula is doing.

 

I created a new column called "new category" (column e shown below). I'd like the string value in this column to populate what shows in column C UNLESS there is a value (not null) in column D. If there is a value in column d I want that to populate in E instead.  Thanks,

 

excel formula to translate into alteryx formula.PNG

 

lac_0-1615814525979.png

 

 

 

4 REPLIES 4
Emil_Kos
17 - Castor
17 - Castor

Hi @lac,

 

I have created a workflow for you:

 

Emil_Kos_0-1615815300627.png

The formula is:

 

IIF([Where]='business office', 'business office', [level])

Luke_C
17 - Castor

@lac 

 

Yes, you can use an IF statement in Alteryx. The syntax is a little different than excel though. I attached an example with two approaches based on your message. 

 

Using your screenshots as an example:

 

IF [Where] = 'business office' THEN [Where] ELSE [Level] ENDIF

 

Or, if it is simply anywhere where the 'where' field isn't null:

 

if !IsNull([Where]) then [Where] else [Level] endif

 

Emil_Kos
17 - Castor
17 - Castor

Hi @lac,

 

Actually, my previous workflow was incorrect. Please see an updated version

 

Emil_Kos_0-1615815567370.png

 

lac
7 - Meteor

You made this very easy. Thank you

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels