In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter with Multiple Conditions not Working

cro159
7 - Meteor
 

Having an issue with a filter where I'm trying to use either an OR function or an IN function and both aren't working.  Example is shown with the IN error.

Set up the OR one [Field] = "1" or [Field] = "2" and that isn't working either.

7 REPLIES 7
Amy_smart
11 - Bolide

Hi, 

 

Have you tried converting the field to a string first?

 

Thanks,

Amy

alexnajm
19 - Altair
19 - Altair

What data type is your field in?

alexnajm
19 - Altair
19 - Altair

[OrdTypGrpCd] is likely being stored numerically beforehand - changing it to a string should fix this. 

 

If you have a sample of the data, that would be useful to test!

cro159
7 - Meteor

Yes, initially it was a V_string and then I changed it to just string and that still didn't work

apathetichell
20 - Arcturus

if it's a number use IN(2008,2010) - If it's a string use IN("2008","2010") 

 

If you try the above and are still getting an error - your error is somewhere else - it's just being flagged here.

alexnajm
19 - Altair
19 - Altair

Can you show me the configuration of the workflow? And a screenshot of the Select tool that's changing the data type?

cro159
7 - Meteor

Was able to figure out the error, thanks for your time

Labels
Top Solution Authors