Alteryx Designer Desktop Discussions

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

Incorrect calculation results

tanyaz
6 - Meteoroid

Hello-

 

I have a straight forward calculation set up and its working fine for one of the dates but not for another date.  I'm not sure what is contributing to the error.  Appreciate any feedback.

 

This is the calculation for 'Open Rate Overall Status

IF [Assessment %]<=-5 then "Very Good"

elseif [Assessment %]>-5<=0 then "Good"

elseif [Assessment %]>0<=5 then "Fair"

elseif [Assessment %]>5<=15 then "Poor"

elseif [Assessment %]>15 then "Very Poor"

else Null()

endif

 

Calculation for Open Rate RAG

if [Open Rate Overall Status]="Very Good" or "Good" then "Green" elseif [Open Rate Overall Status]="Fair" or "Poor" then "Amber" else "Red" endif

 

Results: highlighted in red is the date with incorrect Status and RAG.  Correct results for 1/31/2021 should be "poor" and "Amber"

 

List of KPIsAssessmentReporting DateAs of DateAssessment %Open Rate Overall StatusOpen Rate RAG
Open Rate0.123/31/20211/31/202112GoodRed
Open Rate-0.0633/31/20212/28/2021-6.3Very GoodGreen
2 REPLIES 2
Luke_C
17 - Castor

@tanyaz 

 

Try this:

 

IF [Assessment %]<=-5 then "Very Good"

elseif [Assessment %]>-5 and [Assessment %] <=0 then "Good"

elseif [Assessment %]>0 and [Assessment %] <=5 then "Fair"

elseif [Assessment %]>5 and [Assessment %] <=15 then "Poor"

elseif [Assessment %]>15 then "Very Poor"

else Null()

endif

 

tanyaz
6 - Meteoroid

Thank you so much @Luke_C .  Works perfectly now!!

Labels