Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Expressions | Filter Tool | Odd and Even Filtering

JBO
8 - Asteroid

I am building an expression in the Filter tool to isolate data that has an odd number in a particular field. I can't find a function for identifying odd and even values. Is there one?

Thanks.

2 REPLIES 2
adm510
11 - Bolide
Mod([Field1], 2)

Use the modulus function, if it returns 0 the number is even, if it returns 1 the number is odd

 

2 % 2 = 0

3 % 2 = 1

4 % 2 = 0

...

 

JBO
8 - Asteroid

Thank you!

 

Labels
Top Solution Authors