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.

removing dupes from the datasheet

Sshasnk
8 - Asteroid

We have a dataset where we have three friends SLC, Kim, Tom, and Hanks. And out of these four SLC has the responsibility to get fruits. But in case if any of the other friends get the fruits then we have to remove them from 

 

Prd_IdNameTypePrice
123SLCFruit125.01
345KimVegetables1457.00
123Tom

Fruit

145.01

123Hanks

Fruit

4527

456SLCFruit124.01
890SLCFruit126.01
159TomFruit457.01
890KimFruit523

 

Condition:

1. I have to check if the same product id and type is part of the sheet-> if they do I have to remove them

2. I duplicate was found then we have to select the record which has SLC

 

Example:

Product id -> 123 - SLC- fruit is also present for tom and hank so I have to remove them

another example: product id -> 159 - Tom - Fruit -> As SLCdoes have the same product id and type in the sheet so we have to include this

 

Output:

 

Prd_IdNameTypeprice
123SLCFruit125.01
345KimVegetables1457.00
456SLCFruit124.01
890SLCFruit126.01
159TomFruit457.01

 

Let me know if any confusion 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @Sshasnk,

 

I have created an order formula to make sure that I have sorted the data in the correct way:

 

Emil_Kos_0-1618379116239.png

 

The truth is I know that unique tool is rearranging the data but after some tests, it looks like it is working correctly

 

Qiu
20 - Arcturus
20 - Arcturus

@Sshasnk 

Maybe we need a big dataset for validate.

0414-Sshasnk.PNG

Labels