In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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
Top Solution Authors