Alteryx Designer Desktop Discussions

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

Preparation - Custom Filters (A AND B) OR (C AND D)

Leanna12
7 - Meteor

 

 

Description of Process

In the custom filter tool, I want to write an expression that says something along the line of

(Column 2=48040 AND Column 1 Contains QZ) 

OR

(Column 2=50786 AND Column 1 Contains QZ)

OR

(Column 2=51939 AND Column 1 Contains QZ

 

Can this be done with one expression or do I need to make two filters?

 

Can you help me with a sample workflow for this?

Description of Input

Two Columns

Description of Output (DESIRED OUTPUT)

 

see above

2 REPLIES 2
Luke_C
17 - Castor

Hi @Leanna12 

 

You could try this filter configuration, using the 'In' operator

 

[Column 2] in(48040,50786,51939) and contains([Column 1],'QZ')

 

Luke_C_0-1678401290210.png

 

Amilley
8 - Asteroid

@Leanna12  You could absolutely use your logic in a very simple compound statement:

 

Amilley_0-1678401696446.png

 

To that point @Luke_C's solution would work as well, but may be less readable for those not familiar with the 'value IN' function - on the plus side, its more tight, and if you needed to add another condition, you could just expand the list in the IN clause - so there is some continuity there!

 

Hope that helps!

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels