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

Split Data into a Second Stream based on a Value appearing multiple times

ssripat3
8 - Asteroid

Hello community,

 

I have a specific set of data that is a response from the API. The API might respond with some values for each unique ID, some values might have the same ID but different data. Below is an example of the data.

Input

 

Book IDBook NameBook Pages
GTB123XYZThe Great Gatsby180
GTB123XYZGreat Gatsby176
GTB123XYZThe Great Gatsby (1925 Edition)185
TKM456ABCTo Kill a Mockingbird281
TKM456ABCTo Kill a Mockingbird (Paperback)281
NINET84DEF1984328
NINET84DEFNineteen Eighty-Four328
PANDP789GHIPride and Prejudice432
PANDP789GHIPride & Prejudice432
LOTR000JKLThe Lord of the Rings1178
HOBBIT111MNOThe Hobbit310

 

Expected Output 1

 

Book IDBook NameBook Pages
GTB123XYZThe Great Gatsby180
GTB123XYZGreat Gatsby176
GTB123XYZThe Great Gatsby (1925 Edition)185
TKM456ABCTo Kill a Mockingbird281
TKM456ABCTo Kill a Mockingbird (Paperback)281
NINET84DEF1984328
NINET84DEFNineteen Eighty-Four328
PANDP789GHIPride and Prejudice432
PANDP789GHIPride & Prejudice432

 

Expected Output 2

 

Book IDBook NameBook Pages
LOTR000JKLThe Lord of the Rings1178
HOBBIT111MNOThe Hobbit310

 

Now, I would like to split the data into two streams where one stream contains the non-unique Book IDs and the other stream contains unique Book IDs similar to the Expected Output 1 and 2

 

Can anyone please help me with this? Thank you

 

1 REPLY 1
alexnajm
17 - Castor
17 - Castor

Use a Summarize tool to get a count of the Book IDs, then use that with a Join tool against the original data to add on the Count field. Then you can filter to where Count = 1

Labels
Top Solution Authors