We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Delete the rows based on condition

Sshasnk
8 - Asteroid

I have different datasets and I have to delete the rows below examples.

 

Dataset 1:

user idnamecountry
   
 nameIDCountryID
   
 ABC123

 

Dataset 2:

nameuser idcountryregion
   regionid
nameID CountryID 
    
 ABC123 

 

What we have to do:

1, We have to search for name id and name id could be in the first column or in the second column

2. Once we find it (user id) we have to remove all the rows from the name id till above (do not remove header)

3. Also we have to remove all the rows from all the columns

4. It should be dynamic

 

Note: headers from other columns will change 

 

The output of dataset 1:

user idnamecountry
 ABC123
   
   
   

 

The output of dataset 2:

nameuser idcountryregion
 ABC123 
    
    
    

 

2 REPLIES 2
BrandonB
Alteryx
Alteryx

I think this will do it for you and you can see the workflow attached:

 

BrandonB_0-1663105040608.png

 

Qiu
21 - Polaris
21 - Polaris

@Sshasnk 

I noticed that you still want to keep the origial number of rows. This might be working.
And hope you dont mind the Space in the the column names become Underbar after CrossTab

0914-Sshasnk-1.PNG0914-Sshasnk-2.PNG

Labels
Top Solution Authors