Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Using filter for: Condition X and (Condition Y or Condition Z)

Adityasa
7 - Meteor

Hi All,

 

I am trying to write a custom formula in the filter tool for the following requirement: 

If Column A = "Apple" AND (Column B = "Ball" OR Column B = "Cat")

So, if column A has Apple written, and Column B has either Ball or Cat, I want those rows to flow through the True node in the filter. What should be the formula for this?

 

Thanks.

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @Adityasa,

 

The filter tool should have this formula:

 

[Column A] = "Apple" AND ([Column B] = 'Ball' OR [Column C] = 'Cat')

 

I have created a workflow for you. 

afv2688
16 - Nebula
16 - Nebula

Hello @Adityasa ,

 

How about this:

 

 

[Column A] = "Apple" AND [Column B] IN ('Ball','Cat')

 

 

Untitled.png

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi @afv2688,

 

My mistake as I was thinking that it should look into Column B or C my bad. Instead of:

 

[Column A] = "Apple" AND ([Column B] = 'Ball' OR [Column C] = 'Cat')

 

you can also go with:

 

[Column A] = "Apple" AND ([Column B] = 'Ball' OR [Column B] = 'Cat')

Labels
Top Solution Authors