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.

Find the desired row in similar rows

k3pineapple
8 - Asteroid

Hi all

 

Seeking your kind help find desired row here. I am struggling to filter the desired row out.

 

Red color rows required to be removed, not sure whether is doable or not. 

if not, can do row 1-5 first. Much appreciated.

 

Input:

RowNameLocationAppleBananaCarLemonMelonYes Count
1ABC Inc.EuropeYes Yes Yes3
2ABC Inc.Europe  YesYesYes3
3ABC Inc.EuropeYesYesYesYesYes5
4DEF Inc.AsiaYes   Yes2
5DEF Inc.AsiaYesYesYes Yes4
6XYZ Inc.Asia   Yes 1
7XYZ Inc.Asia  Yes  1
8LMN Inc.Europe  Yes  1
9LMN Inc.Europe Yes Yes 2
10LMN Inc.Europe YesYes   2

 

Output

RowNameLocationAppleBananaCarLemonMelonYes Count
3ABC Inc.EuropeYesYesYesYesYes5
5DEF Inc.AsiaYesYesYes Yes4
6XYZ Inc.Asia   Yes 1
7XYZ Inc.Asia  Yes  1
9LMN Inc.Europe Yes Yes 2
10LMN Inc.Europe YesYes   2
5 REPLIES 5
caltang
17 - Castor
17 - Castor

What is the logic in removing them? Or do you just want to remove them just because?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
gawa
16 - Nebula
16 - Nebula

@k3pineapple 

I imagine that you have excel data, and some cells are highlighted in red color. You want to filter the rows having at least on red cell.

Unfortunately Alteryx cannot recognize input data format, so cannot distinguish which rows should be filtered.

 

As an advanced technique, you can read excel file as a zip file by Alteryx, and extract format information inside of Excel file somehow, and you can know which row should be filtered. But this is quite difficult.

k3pineapple
8 - Asteroid

@caltang the main logic is to get row that has most Yes count row

sub - logic : if there is unique value in each row than output both rows

 

k3pineapple
8 - Asteroid

@gawa thx , the logic is to get row which has most # of Yes count. the sub-logic (optional) if both rows have unique value of Yes then output both rows. hope this help

gawa
16 - Nebula
16 - Nebula

hi @k3pineapple 

 

I got it, then it is super easy.

First, get max YES count for each companies by Summarize tool. Next, Join input data and summarized data, then you can get the desired output.

For your reference, to get max record of group, combo of "Sort and Sample" can be also used, however this does not work when data is having multiple record with the same rank like your case.

image.png

Labels
Top Solution Authors