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

Creating Calculated Field

sriniprad08
11 - Bolide

Hi Team,

Hope you are well. I need help in creating the calculated field based on the certain conditions.

 

1) Current Status (Column N) in the below snapshot.

     Formula -> IF([@[June Count Full Access %]]<5%,"BELOW THRESHOLD","ABOVE THRESHOLD")

 

2) Average Status (Column O) in the below snapshot,

     Formula -> IF(N2="BELOW THRESHOLD", "STABLE", IF(M2>10%, "FLAG", "STABLE"))

 

3) KRI weight (Column P) in the below snapshot,

     Formula - > [@[Current Status]]&" "&[@[Average Status]]

 

Please find attached the snapshot of the data and 

sriniprad08_0-1632756251344.png

 

Thank you for the support,

 

Regards

Sri

7 REPLIES 7
binay2448
11 - Bolide

1) Current Status (Column N) in the below snapshot.

     Formula -> IF [June Count Full Access %]< 5% then "BELOW THRESHOLD" else "ABOVE THRESHOLD" endif

 

2) Average Status (Column O) in the below snapshot,

     Formula -> IF N2 ="BELOW THRESHOLD" then "STABLE" else IF M2 >10% then "FLAG" else "STABLE" endif endif

 

3) KRI weight (Column P) in the below snapshot,

     Formula - > [Current Status]] + " " + [Average Status]

sriniprad08
11 - Bolide

Thank you @binay2448 . Very helpful. one question please how can we show % next to a number in alteryx in a if else statement

sriniprad08_0-1632762413875.png

 

thanks

 

atcodedog05
22 - Nova
22 - Nova

Hi @binay2448 

 

Change 5% to "5%" or 0.05

 

Hope this helps : )

sriniprad08
11 - Bolide

@binay2448   Thank you. The second conditions doesn't seem to work correctly. Can you please let me know if this is correct?

2) Average Status (Column O) in the below snapshot,

     Formula -> IF N2 ="BELOW THRESHOLD" then "STABLE" else IF M2 >10% then "FLAG" else "STABLE" endif endif

 

 

Actual results is

sriniprad08_0-1632762910261.png

 

When i run the below formula it results in all of them "Flag"

 

IF [Current Status] ="BELOW THRESHOLD"
then "STABLE"
else IF [Average Full Access %] > "10%"
then "FLAG" else "STABLE" endif endif

 

sriniprad08_1-1632762948980.png

 

Please let me know your thoughts,

 

thanks

atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

try this

 

IF [Current Status] ="BELOW THRESHOLD"
then "STABLE"
else IF [Average Full Access %] > 10
then "FLAG" else "STABLE" endif endif

sriniprad08
11 - Bolide

Hi @atcodedog05 ,

 

Thank you for the help. Sorry but it's not working. Giving the same result.

 

atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

Can you provide some sample input and expected output it will help us get a better understanding of the usecase.

Labels
Top Solution Authors