Start Free Trial

Alteryx Designer Desktop Discussions

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

How to Filter out with certain value

Apple_Orange
8 - Asteroid

Hi Community,

 

We have many Label codes for each product type. For Pear, I only need keep the record for Label Code "A" and "B". For the rest of Type, no need to filter out any Label code. Could Alteryx help.

 

TypeLabel Code
AppleA
AppleB
AppleC
AppleF
OrangeA
OrangeB
OrangeC
PearA
PearB
PearC
PearD

 

The desire outcome would be

TypeLabel Code
AppleA
AppleB
AppleC
AppleF
OrangeA
OrangeB
OrangeC
PearA
PearB

 

5 REPLIES 5
jrlindem
12 - Quasar

Here you go:

jrlindem_0-1761050818126.png

 

 

Follow the [F]alse path once done.

 

Inverse logic is always a little mind-bending, but you identify what you want to carve out, then just follow the false path of the filter tool.  Hope that helps, -Jay

binu_acs
21 - Polaris

@jrlindem one more filter condition to get the result in True-anchor

binu_acs_0-1761055055483.png

 

dreldrel
9 - Comet

I believe @jrlindem and @binu_acs have shared great solutions. One practical tip you can use is to add a data cleaning tool before the filter, as the values may contain leading/trailing spaces or different cases if they come from users. Data cleaning tools can easily handle those cases

jrlindem
12 - Quasar

Thank you, @dreldrel for the response, however, I would caution against the use of the data-cleanse tool due to its tendency to slow down workflows and clog up memory.  The general assumption for this solution is that the author has already tailored their workflow to account for general cleansing activities but just needs help with the logical components, applied against their dummy-data.

 

-Jay

Apple_Orange
8 - Asteroid

Thanks so much for the solution.

Labels
Top Solution Authors