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

Custom Filter Expression

k3pineapple
8 - Asteroid

I would like to simply the Custom Filter scripts here, wondering whether there is way.

 

E.g.

[Application] = "a" AND

[Application] = "b" AND
[Name] != "smith" AND
[Name] != "peter."

 

Is there a way to Omit the repetitive part, in this sample, which are [Application] =  [Name] !=

Tried with [Name] != ("smith" , "peter"), no luck

2 REPLIES 2
alexm06
8 - Asteroid

@k3pineapple I think you're along the right lines. The IN and NOT IN functions might be what you're looking for here. Does the following solve your problem?

 

[Application] IN("a","b") AND
[Name] NOT IN ("smith","peter")

k3pineapple
8 - Asteroid

Yes, that's the function I am looking for, thank you

Labels
Top Solution Authors