Start Free Trial

Alteryx Designer Desktop Discussions

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

How to pick rows after certain word

kauser
8 - Asteroid

Hello, 

i need to keep few specific rows after certain word from the data sheet. how can i pick those certain rows. based on these following data how can i keep all rows after Type Green. (please note Green is now in 2nd rows but this order can be change month over month so Rows# can't work and i need to do this sorted based on Type which is green in this example) 

 

Input data 

TypeItemExpIncome
YELLOWA50100
GREENB60220
REDC40540
BLACKD20620

 

Expected Output Data

TypeItemExpIncome
REDC40540
BLACKD20620

 

6 REPLIES 6
alexnajm
18 - Pollux
18 - Pollux

You can use a Multi-Row formula tool to create a column to filter on - something like IF [Row-1:Type]="Green" THEN 1 ELSE [Row-1:New Field] ENDIF (make sure you name the "new column" part to whatever your column will be called)

Screenshot 2025-11-10 151718.png

jrlindem
12 - Quasar

@alexnajm 's approach is the right and most efficient solution for your need.

 

That said, if you're interested in a non-Multi-Row-Formula solution, you could also do it this way:

 

jrlindem_0-1762807380529.png

 

This is leveraging Row Numbers to grab only those that are greater than the row number of the "GREEN" tag.

 

Cheers,  -Jay

 

kauser
8 - Asteroid

@alexnajm  Thanks for your help. can you 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

 

jrlindem
12 - Quasar

How would you be identifying which words are relevant?  Different every time or are they going to be a known "crosswalk" list?

kauser
8 - Asteroid

@jrlindem  in my example word "Yellow" will remail same as you mentioned "Crosswalk" 

alexnajm
18 - Pollux
18 - Pollux

@kauser to add onto @jrlindem 's point, this is now a different question than the original ask. Please repost this as a different question with more explanation - I am going to close this one since both responses provide a solution.

Labels
Top Solution Authors