We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Double filter of aged items

esabay
8 - Asteroid

Hi all newbie question sorry: how do I do this filter? The result would only include the item if both Age 1 and Age 2 is greater than or equal to 5. Thank you

 

ItemAge 1Age 2
Rabbit1005
Horse50
Dog60
Cat83
Cow244
Man256
Toys576
8 REPLIES 8
alexnajm
18 - Pollux
18 - Pollux

[Age 1] >= 5 AND [Age 2] >= 5

esabay
8 - Asteroid

Hi thank you for your reply. I am having this error when running the workflow. Please help 

 

Capture.PNG

 

 

alexnajm
18 - Pollux
18 - Pollux

My assumption would be that your age columns are not being stored as numbers. Use a Select tool before hand to change those columns into Int 

 

You can also force them to be numbers in the filter by doing 

ToNumber([Age 1]) >= 5 AND ToNumber([Age 2]) >= 5

esabay
8 - Asteroid

Thank you this worked like a charm. Apologies again for the newbie question but on my age 2 items on my live data I have null values on some of them. How do I filter to include data when both Age 1 and Age 2 are greater than 5 and include data when Age 2 is null and Age 1 is greater than 5. Thank you for the help so far. Appreciate it

alexnajm
18 - Pollux
18 - Pollux

You can add any amount of conditions as long as you link them with OR or AND operators, dependent on your filter. In this case, it sounds like you should add OR [Age 2] = null()

esabay
8 - Asteroid

I cant thank you enough @alexnajm . It worked. Appreciate the patience have a great day

alexnajm
18 - Pollux
18 - Pollux

Happy to help! Thanks for marking one of my responses as a solution too - if other parts were also helpful, make sure to mark those as well 😊 otherwise have a great day!

SriNarendra
5 - Atom

Hi have to use filter tool and apply this condition  [Age1]>=5 and [Age2]>=5

Labels
Top Solution Authors