Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

50% of duplicate lines deletion

Mera1993
5 - Atom

Hi All,

I have just started my journey with Alteryx and I have an issue with removing 50% of duplicated entries.

I mean that for example I have:
a) 8 rows containing letter "A"
b) 6 rows containing letter "B"
c) 4 rows containing letter "C"

What do I want to get?
a) 4 rows containing letter "A"
b) 3 rows containing letter "B"
c) 2 rows containing letter "C"

Could someone please help me with that ? Is it possible? My file has much more columns, but I would like to understand the logic of this?

Many thanks anyone for clue/support in advance! 🙂

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @Mera1993 ,

 

Attached is an example showing how to accomplish that by using the sample tool.

 

Take a look and let me know if this works for you.

BEst,

Fernando Vizcaino

DavidP
17 - Castor
17 - Castor

If the value of the entire field is A,B or C, you can do it like this, assuming the rows are sorted.

 

sample tool.png

Mera1993
5 - Atom

Thanks Mate! It worked 🙂 Didnt expect it to be so easy. Didnt know about this sample's functionality 🙂

Labels
Top Solution Authors