ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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