Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How do you pull data values in from a range of numbers?

Dom
8 - Asteroid

I only want to pull data between the numbers 4 - 7 and 0 - 12.

5 REPLIES 5
jack_morgan
9 - Comet

Hey Dom,

Great to see you on here again. The attached workflow takes care of the 3 possible solutions you need:

  1. 4-7
  2. 0-12
  3. 4-7 AND 0-12

Hope it helps!

Dom
8 - Asteroid

Hello Jack,

 

I'm receiving an error when using both of the below expressions. 

 

if [HTIN]>=0 and [HTIN]<=12 then 1 else 0 endif

 

Does the version of Alteryx matter? I couldn't open the file. I had to modify the verion number in notepad to open in 9.5. We haven'r updated to 10.0 yet.

 

 

error: invalid type in operator >=

MarqueeCrew
20 - Arcturus
20 - Arcturus

is the field that you are applying the formula to defined as Boolean or another numeric field type?  If it is a string, you'll get an error message because you are assigning a number to a character field.

 

just a guess....

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Dom
8 - Asteroid

Yes, that worked Mark. I changed the type.

Dom
8 - Asteroid

After the filter what would use? Union? Assuming multiple filters like in the example.

Labels