Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Compare 2 rows and insert a new column

Soraju
7 - Meteor

Hello! 

could someone please help me with the below scenario?

 

Scenario : I have a data set with duplicate SKU numbers in a column. I want to check the whole column and if the SKU shows up multiple times then I want a new column to say -Duplicate, else It should say Unique.

 

Example :

SKUDescription
1234Toy
3456Beverage
1234Toy
8657Paper
9058Soda
3456Beverage
7685Wrap
9846Flower

 

And I would like a new column to find out unique/duplicate:

SKUDescriptionNew column 
1234ToyDuplicate
3456BeverageDuplicate
1234ToyDuplicate
8657PaperUnique
9058SodaUnique
3456BeverageDuplicate
7685WrapUnique
9846FlowerUnique

 

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @Soraju 

 

Here is one way of doing it.

 

atcodedog05_0-1647455709408.png

 

Hope this helps : )

 

Soraju
7 - Meteor

Thank you for your prompt response. I will try that.

Labels
Top Solution Authors