Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Unique Tool

JingYih_Herbalife
8 - Asteroid

Hi,

 

I would like to separate the PR numbers that are duplicates to perform further analysis. 

In the example below, I would like to view all the PR numbers 512411 & 512412 together. 

 

Record numberPR NumberPO Number
1512410112320
2512411112321
3512411112321
4512411112321
5512412112322
6512412112322

 

I tried using the unique tool, under the unique tool the duplicate result only gives me record number 3, 4 and 6. It considers record number 2 & 5 as unique. 

 

Thanks and in advance.

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @JingYih_Herbalife that is expected behaviour from the unique tool you would need to use a join tool with the data from D anchor on the duplicates to join back onto your original data to filter to find the true unique records which have no duplicates at all. I mocked up a example using your data.

 

Unique_31072023.JPG

DataNath
17 - Castor
17 - Castor

Hey @JingYih_Herbalife, the Unique tool works by separating out the first occurrence of a combination of field(s) you have selected as unique, and then any subsequent occurrences are classed as duplicates of that. Therefore, for records 2 & 5, these are the first occurrence of PR number 512411 and 512412 respectively and are classed as unique. The records that follow with the same PR number are considered duplicates, in your case 3, 4 & 6. If you want to look at these PR numbers when there is more than 1, I’d create a new branch where you use a Summarize to perform a count by PR number, join this back using PR number as the condition and then filter for Count > 1.

Labels
Top Solution Authors