Early bird tickets for Inspire 2023 are now available! Discounted pricing closes on January 31st. Save your spot!

Alteryx Designer Discussions

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

How to get in between values?

crazybeauti_ful
8 - Asteroid

Hi All,

 

I know "and" / "or" in Alteryx behave differently than in Excel but I don't know. I need to use them both in a single formula but my logic is not working.

 

Conditions:

Status = "check income"

Income < 200 or > -200

 

The goal is to get the values in between < 200 and > -200.

 

Formula:

1. If status="check income" and income < 200 and income > -200 then...

2. If status="check income" and income < 200 or income > -200 then...

 

Unfortunately, both did not work.

 

Help please.

 

Thank you!

 

3 REPLIES 3
DavidP
17 - Castor
17 - Castor

You want to use the 1st one

 

DavidP_0-1589577776442.png

 

Bennel_Wilson
8 - Asteroid

Hi @crazybeauti_ful ,

 

As @DavidP  mentions, the first formula should bring home the task. However, if you've already tried and worked it out and it still doesn't give the solution, make sure the data type of the fields are correct before the formula tool and the data type you've selected for the output  is correct in the Formula Tool.

 

If it still doesn't work, would you mind posting your workflow and a sample data set for review.

 

Regards

Benn

ckelley0
7 - Meteor

if you are dealing with a range such that the max is the opposite sign of the min, then you can us ABS().  In the case of your range -200 to 200, you could use ABS([income])<200.

Labels