Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Using the Contain function with the And function

deckthehalls
7 - Meteor

Hello all! I am trying to filter out MDW and ORD from the destination column. 

 

The formula I am using is:

Contains([Destination], "MDW") and Contains([Destination], "ORD")

 

I want something that will return both MDW and ORD if they're present within the Destiation Data as true, or either one as False if the other isn't present.

 

Destination
MDW
ORD
PHX
2 REPLIES 2
RolandSchubert
16 - Nebula
16 - Nebula

Hi @deckthehalls ,

 

in your formula, replace "AND" by "OR" and it should work.

 

Contains([Destination], "MDW") OR Contains([Destination], "ORD")

 

Let me know if it works for you.

 

Best,

 

Roland

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @deckthehalls,

 

I think this solves your issue if both values are in there:

 

image.png

 

And also solves if only one is there:

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

Labels