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.
SOLVED

How to delete duplicate rows

Inactive User
Not applicable

Hi Everyone,

 

I have stuck somewhere while trying to delete rows having duplicate value in a particular column,for example:

 

Name Rank

A            1

A            2

B            1

B            2

C            1

D            1

 

Wanna delete A A, B B, keep only C D in my dataset, Can anyone help me to solve this issue.

 

Thanks in advance.

5 REPLIES 5
messi007
15 - Aurora
15 - Aurora

@Inactive User,

 

Please see below : 

 

messi007_0-1654704483190.png

 

Attached the workflow,

Regards,

CarliE
Alteryx Alumni (Retired)

Hi @Inactive User 

Attached is a solution!

CarliE_0-1654704617897.png

 

What this is doing is taking a count of records for each Name, if the record has more than one count, we join back to remove it.

 

The data you want would be taken from the L output of the join

 

If you found that this solution works for you, please make sure to mark a solution :) 

 

Thanks

 

Carli
davidskaife
14 - Magnetar

Hi @Inactive User 

 

Here is one method: Unique tool on Name, then join both sides of the Unique Tool back together on Name, and utilise the left side of the join output

 

DavidSkaife_0-1654704711018.png

 

Inactive User
Not applicable

Hi @DavidSkaife

 

Thanks for your rply, it's helpful and resolved my issue.

minhdvo
7 - Meteor

Thanks. It works for me.

Labels
Top Solution Authors