Start Free Trial

Alteryx Designer Desktop Discussions

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

picking certain rows based on certain word

kauser
8 - Asteroid

can someone help me how to pick certain rows based on certain words. 

 

Input Data 

TypeItemExpIncome
YELLOWA50100
GREENB60220
REDC40540
BLACKD20620
WHITEE56260
ORANGEF65584
YELLOWG70600
BLUEY80400

 

Output Data- 

TypeItemExpIncome
GREENB60220
REDC40540
BLACKD20620
WHITEE56260
ORANGEF65584

 

2 REPLIES 2
jrlindem
12 - Quasar

There's a number of ways you can do this.

 

One is using a Filter Tool.  If you know the values you don't want, you can specify those in your Filter logic and then just move downstream with the values that you do want (true vs false path):

 

jrlindem_0-1762810483162.png

 

The Filter function I used is:  [Type] != "YELLOW" AND [Type] != "BLUE"

 

 

If your list is longer, and it doesn't make sense to build a big long filter function, then you can list the values in a separate Text Input Tool and have that act as a crosswalk.  Then you JOIN this to your original data and just keep the LEFT stream:

 

jrlindem_2-1762810686192.png

 

 

Qiu
21 - Polaris
21 - Polaris

@kauser 
What is the criterial for picking certain rows?

Labels
Top Solution Authors