Alteryx Designer Desktop Discussions

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

IF Formula Tool Help

arundaka03
7 - Meteor

Hi everyone

 

I have the following column and trying to transform to create the desired column:

 

I am in the:Seniority (desired column) 
Top 25% of my organisation in senioritySenior role
Middle 50% of my organisation in seniorityNon-senior role
Bottom 25% of my organisation in seniorityNon-senior role
OtherNon-senior role
[Null][Null]

 

I've used the Formula tool with the following formula, but unfortunately it's not transforming the "Top 25% of my organisation in seniority" to "Senior role", instead it is transforming it to [Null]. This is depicted in the column below in red text:

 

I am in the:Seniority (desired column) 
Top 25% of my organisation in seniority[Null]
Middle 50% of my organisation in seniorityNon-senior role
Bottom 25% of my organisation in seniorityNon-senior role
OtherNon-senior role
[Null][Null]

 

Screenshot of my formula below: 

 

arundaka03_0-1638119631092.png

 

Can someone please help me troubleshoot my IF formula?

 

Thanks,

KA

 

 

 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@arundaka03 ,

 

IF

IsEmpty([field]) THEN Null() ELSEIF

Left([field],3) = "Top" THEN "Senior role"

ELSE

"Non-senior role"

ENDIF

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
arundaka03
7 - Meteor

Thanks, Mark. I've just edited my post to make it clearer. Essentially my IF formula is not transforming the "Top 25% of my organisation in seniority" response to "Senior role", whilst every other value is transformed as desired.

 

Any ideas?

 

Thanks,

KA

MarqueeCrew
20 - Arcturus
20 - Arcturus

Did you try using the top part of my expression?

 

ELSEIF

Left([field],3) = "Top" THEN "Senior role"

cheers

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels