Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

If value is greater than and less than certain values, output text incorrectloutputting 0

muddobber26
8 - Asteroid

Hello - I am trying to display one of three letters based on where a value falls within a specific range of numbers. See below. The formula keeps outputting "0" instead of X, Y or Z, and I cannot figure out why.

 

Alteryx 1.PNGAlteryx 2.PNG

1 REPLY 1
IraWatt
17 - Castor
17 - Castor

Hey @muddobber26,

You dont need to put [X,Y,Z] = "X", just put "X" and do the same for all the other THEN statements besides the last ELSE statement, that ones fine. Because youve already selected the X,Y,Z column Alteryx knows the THEN statement should input into X,Y,Z eg:

if [RunTot_Part %]<=10 THEN "X" ELSEIF ....

HTH,

Ira

Labels
Top Solution Authors