Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Remove Duplicates on one column without removing whole record

magsbiel
7 - Meteor

Hi,

How do I remove repeating cells from one column (measure) without removing the whole row? I would like to replace with null any repeating cell (sometimes there are triple or even four records). I used a multi-row tool, but that would only remove the duplicate, not if there are more than two of the same records for this specific attribute.


Thank you!

3 REPLIES 3
jrgo
14 - Magnetar

Hi @magsbiel 

 

I believe the Multi-Row Formula Tool is still what you want to use. You can define what fields (attributes) you want it to be evaluated on by selecting it in the "Group by" section.

 

Can you share a dummy file or illustration of what you're working with and what you'd like it to look like after?

Qiu
20 - Arcturus
20 - Arcturus

@magsbiel 
I hope I get your intention correctly.

Capture51.PNG

SeanAdams
17 - Castor
17 - Castor

Do this in 2 steps:

 

Step 1: Identify the duplicate:

- Sort the data by the relevant column

- Use the Multi-row tool to check for duplicates and create a column called "isDuplicate" which is Y/N

 

Step 2: Eliminate the duplicate

- Simple formula tool to update FieldName field that says "if [isDuplicate] = 'Y' then null() else [fieldname] endif"

 
Labels