Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Filter Troubles

Brad1
11 - Bolide

I want to capture this:

 

([State] = "ID" OR [State] = "WA" OR [State] = "CA" AND [Plan_A] = "X")       OR      ([State] = "ID" OR [State] = "WA" OR [State] = "CA" AND [CHAIN] = 100 Or [CHAIN] = 200 Or [CHAIN] = 300 Or [CHAIN] = 400)

 

The above is just my latest attempt.  All States are contained in my results.  Anyone know what I'm doing wrong?  Thanks in advance.

4 REPLIES 4
Brad1
11 - Bolide

I split this out into to Filter Tools and it works.  State in one, rest in the other.  Can it all be place in one Filter Tool?

NicoleJohnson
ACE Emeritus
ACE Emeritus
Try this one formula in your filter tool:

[State] IN ("ID","WA","CA") AND ([Plan A]="X" OR [CHAIN] IN (100,200,300,400))

Does that work for you? :)

NJ
patrick_digan
17 - Castor
17 - Castor

@Brad1 You'll want to use parens to further group things to make it more clear what your after. You can also use the IN function. I'm thinking you'll want something like

 

[State] IN("ID","WA","CA") AND ([Plan_A] = "X" OR [CHAIN] IN(100,200,300,400))
Brad1
11 - Bolide

Thx.  Put it on my tab.  lol

Labels