Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

IF Then with > and < Condition Error

alyssa_sedai
8 - Asteroid

The answer is probably staring me in the face.  However if I actually go to finish the If/Then statement

alyssa_sedai_0-1613780422660.pngalyssa_sedai_1-1613780450795.png

 

It freaks out when I try and add the final EndIf. I have tried to do it with and without the ().  There must be something wrong.  Nor do I care what the last Else is coded too as there really shouldn't be anything left.

 

Can anybody tell me what I am missing?

 

Thanks in advance!

3 REPLIES 3
clmc9601
13 - Pulsar
13 - Pulsar

Hi @alyssa_sedai,

 

What is the data type of your field [sum_sales_week_95]? The error message the formula tool is giving you looks like you are trying to do math on a string field. The solution to that issue is to change it to a numeric field!

 

Also, I believe you could accomplish this binning with the manual cutoffs configuration in the tile tool... just a thought! 

alyssa_sedai
8 - Asteroid

@clmc9601 

 

Thanks!  Yeah I have a brain... maybe... That was totally the answer!

clmc9601
13 - Pulsar
13 - Pulsar

No problem! We all have those moments 🙂 

 

If you ever find yourself writing a lengthy IF statement, I'd encourage you to investigate some of the other tools available. A long IF statement like this accomplishes the goal, but it's easy to make mistakes and not very dynamic. This kind of binning can be done in the tile tool or with creative uses of the join tool! Happy solving!

Labels