Alteryx Designer Desktop Discussions

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

Duplications created by Join tool

JSL99
5 - Atom

Hi Everyone,

 

I am joining 7 tables together and am encountering some duplication problems. I have created some simplified tables below to give an idea.

 

IDLabel_1
1A
2B
3C
4D
5E

 

IDLabel_2
2F
2G
3H
5I

 

IDLabel_3
2J
2K
2L
4M
4N

 

As you can see, every table has an ID column which is what I am joining on, however some tables have not got all 5 (25 in my actual data) of the IDs and some tables have more than one result for each ID. The result I am getting is as follows.

 

IDLabel_1Label_2Label_3
1ANULLNULL
2BFJ
2BGJ
2BFK
2BGK
2BFL
2BGL
3CHNULL
4DNULLM
4DNULLN
5EINULL

 

What I would like to get is 

 

IDLabel_1Label_2Label_3
1A  
2BFJ
2 GK
2  L
3CH 
4D M
4  N
5EI 

 

I am happy for the ID column to stay as is or to not have duplicates, just as long as the Label columns are not duplicated. 

 

Kind Regards,

James

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

The Tile tool is my favorite tool for use cases like this. Set the Tile tool to "Unique Value" and it works as a GroupBy RecordID tool. Use this to assign a RecordID (Tile_Num) for each unique value that occurs in each "Label_" field, and join on ID and the new RecordID (Tile_Num) field. Finally, a Multi Row Formula tool will fill in the missing ID values. 

 

Check out the attached solution and let me know if you have any questions. 

 

20200117-TileJoin.png

 

 

JSL99
5 - Atom

Worked perfectly! 

 

Thanks a lot!

Labels