Alteryx Designer Desktop Discussions

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

join tool - lost data

vivian123
7 - Meteor

Hi all, 

 

I am using the join tool to combine data however I seem to lose data after joining. 

 

I would like to join these 2 tables based on PetID. 

Table 1:

OwnerIDNumber of petsPetIDWeight
123211110
123222220
234144440
5671555 

 

Table 2: 

PetIDWeightLength
1111050
2222060
4444070

 

Ultimately, I want the end product to look like this:

 

OwnerIDNumber of petsPetIDWeightLength
12321111050
12322222060
23414444070
5671555  

 

After using the join tool, I seem to lose the data for OwnerID 567. What's the correct way to do this? Thanks!

 

4 REPLIES 4
apathetichell
19 - Altair

Join only combines entries which exist in BOTH data sources (SQL inner join) in the join anchor. If you want to rejoin other entries form one table you'll need to use a union after with say the right (or left) and joined anchors.

vivian123
7 - Meteor

Thanks for the reply. This is still not working though. Could you please show me what the workflow might look like? 

apathetichell
19 - Altair

This is a left outer join - so the first thing to do is attach both data sources to a join and match on Pet ID. - taking care to dedupe fields you don't need duplicates of (weight and pet id) - then you take the left anchor and the join anchor and run both into a union. see attached.

vivian123
7 - Meteor

Thanks!!

Labels