The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula or Tool to search for Variance

Ethang482
6 - Meteoroid

I'm looking to solve an issue where I have a column with YoY% variances. The end goal is to find those whose variance is +/-15% within a row to then produce the word "Error" to structure conditional formatting in excel. 

Currently the Var% as Double type and think that could be the problem in the below formula and might need to change one way or the other:

 

IF [YoY Var%] > ABS(15) then "ERROR" elseif "GOOD" ENDIF

 

Everything works in the formula except the 'ENDIF'

2 REPLIES 2
jmgross72
7 - Meteor

Use this formula instead:

IF [YoY Var%] > ABS(15) then "ERROR" else "GOOD" ENDIF

 

The difference being elseif > else.  You only need to use elseif if there is another condition you want to test.  For the default output, else is the way to go.

 

Hope this helps!

 

Ethang482
6 - Meteoroid

Thank you!

Labels
Top Solution Authors