Alteryx Designer Desktop Discussions

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

Join Duplicate issue

NiranjanK1
8 - Asteroid

Hi All,

 

Im unable to join two tables with the data im getting un expected blanks and duplicate records.

Table1 Table2
YearMonthWeekRegionA1A2A3 YearMonthWeekRegionT1T2T3T4
20221/1/2022Week 1APACETY7910 20221/1/2022Week1APAC274524800
20221/1/2022Week 1EMEAETY9362 20221/1/2022Week1EMEA8768148362328996
20221/1/2022Week 1NAEASTETY19740 20221/1/2022Week1NAEAST467712848723573
20221/1/2022Week 1APACBDS510 20221/1/2022Week2APAC72745200
20221/1/2022Week 1EMEABDS56115 20221/1/2022Week2EMEA6144114101705461
20221/1/2022Week 1NAEASTBDS11273 20221/1/2022Week2NAEAST401512708082265
20221/1/2022Week 2APACETY456 20221/1/2022Week3APAC95697600
20221/1/2022Week 2EMEAETY5630 20221/1/2022Week3EMEA5881140642762696
20221/1/2022Week 2NAEASTETY15636 20221/1/2022Week3NAEAST252211766171913
20221/1/2022Week 2APACBDS1115 20221/1/2022Week4APAC99769700
20221/1/2022Week 2EMEABDS555 20221/1/2022Week4EMEA6003148691591797
20221/1/2022Week 2NAEASTBDS1356 20221/1/2022Week4NAEAST367511529092874
20221/1/2022Week 3APACETY5017         
20221/1/2022Week 3EMEAETY8657         
20221/1/2022Week 3NAEASTETY13849         
20221/1/2022Week 3APACBDS85         
20221/1/2022Week 3EMEABDS154102         
20221/1/2022Week 3NAEASTBDS14107         
20221/1/2022Week 4APACETY6312         
20221/1/2022Week 4EMEAETY5461         
20221/1/2022Week 4NAEASTETY20357         
20221/1/2022Week 4APACBDS189         
20221/1/2022Week 4EMEABDS10376         
20221/1/2022Week 4NAEASTBDS1673         

 

Thanks & Regards,

Niranjan

3 REPLIES 3
JamesCharnley
13 - Pulsar

Hi @NiranjanK1 

 

Generally speaking when you're getting duplication after joins it means that you're not joining on enough unique identifiers. I'd expect in this join you'd want to join on Year, Month, Week and Region to get A1, A2, A3, T1, T2, T3, T4 on a row level with no duplication.

 

The rows need to be formatted consistently too. In your example there is a space between the week and the number in table 1, but no space in table 2, so those wouldn't joined without that being corrected first.

 

JamesCharnley_0-1673529476666.png

 

 

Does that help?

NiranjanK1
8 - Asteroid

@JamesCharnley Thanks a lot it is working as expected. Quick doubt, If I want to remove duplicate from second table what is the best way. 

JamesCharnley
13 - Pulsar

@NiranjanK1 not entirely sure what you mean in this instance since there isn't any duplication as such in your table 2 or the join output here (there's nothing to distinguish between BDS and ETY in table 2, not sure if that's relevant to you here).

 

But on a higher level if you have duplicated rows for whatever reason you can remove them with a Unique tool, where you can select column names whose combination you want to be unique (though be wary in some instances because it will take the first row). Check out the documentation here: https://help.alteryx.com/20223/designer/unique-tool

Labels