The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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