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

General Discussions

Discuss any topics that are not product-specific here.

how to keep a row based on a given condition and delete the other

Mahesh6279
7 - Meteor

I have an excel where i have part and plant combination. 

 

I would like to keep the row based on a condition else delete the row.

 

the condition is as follows 

1. If the column " Category" = SA I would like to keep the row else delete

2. if the Part and Plant combo does not have SA but only SB the keep the row

 

First preference is categort 'SA' to keep the row

2 REPLIES 2
dkungu
8 - Asteroid

Hi @Mahesh6279 

 

You can achieve this using below filter_discussion_dnk.png

griffinwelsh
12 - Quasar

@Mahesh6279 Here is a simple solution.  Note this will eliminate duplicate rows as well.

1. Sort by category in ascending order

2. Summarize tool: group by Part and group by Plant. First Category

2094.png

Labels
Top Solution Authors