Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Duplicate rows

TormentMaker
8 - Asteroid

Hi everyone, i'm new using alteryx designer and i'm doing a project with it, but i'm having some kind of a problem with one of my tables, it does have duplicate rows that aren't exactly the same, here is an example: 

 

CharacterMoneyDate
Lucy1905/jul
Kwamma2005/jul
Lucy1805/jul

 

Up there, i want to delete the duplicate rows of Lucy as a example, but only the one with the biggest value, letting the one with the smallest value on the table

 

Someone could know how to do this?

8 REPLIES 8
TheOC
15 - Aurora
15 - Aurora

hey @TormentMaker 

Perfect use-case for the summarise tool :

TheOC_0-1620922798268.png

TheOC_1-1620922805159.png



Please find workflow attached

Hope this helps!¬
TheOC

 


Bulien
atcodedog05
22 - Nova
22 - Nova

Hi @TormentMaker 

 

This can be easily done with use of sort and unique tool/sample tool.

 

1. Sort the Value by descending

2. In Sample tool set first row, groupby as name and N=1 (keep only first row)

    or

2. In unique tool set grouby as name (keep first occurrence)

 

Sorting is key since it keeps only the first row occurrence 

atcodedog05_1-1620923343865.png

Hope this helps 🙂

BonusCup
10 - Fireball

UPDATE:  I re-read your post and you are wanting to remove the one with the higher money total.  In the sort, change the Money to Ascending.

 

You can use the Sort tool and then the Sample tool.

 

BonusCup_0-1620923003424.png

Attached is the sample workflow.

mceleavey
17 - Castor
17 - Castor

Hi @TormentMaker ,

 

@TheOC 's takes account of the requirement for the larger of the money values.

@atcodedog05 , you'll need to add a sort descending on money to yours to account for the first instance being lower.

 

M.



Bulien

atcodedog05
22 - Nova
22 - Nova

Hi @mceleavey 

 

Nice catch ! I accidently sorted on date instead on money 😅

TheOC
15 - Aurora
15 - Aurora

hey @TormentMaker 

I only just noticed you want the minimum, you just need to change the action to "min" on the money field in the summarize tool:

TheOC_0-1620924368879.png



Hope this helps!


Bulien
TormentMaker
8 - Asteroid

Thanks @atcodedog05 buddy, that worked! 😄

TheOC
15 - Aurora
15 - Aurora

Glad you got it sorted @TormentMaker !


Bulien
Labels