Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Blend two files - where want to keep all records in one file - R and J .

cwilcoxmtn
7 - Meteor

I want to join two files - Pass every record in my main (Let's say R) file (R and J) - I will use the L file to add a variable when the fields match - and put a null (which I can change using imputation) when they don't match.

 

 

 

 

5 REPLIES 5
danielbrun2
ACE Emeritus
ACE Emeritus

Hi,

 

Just union the two outputs after the join. This will give you all records and the joined fields.

 

Best regards,

Daniel

MarqueeCrew
20 - Arcturus
20 - Arcturus

It sounds like you want to JOIN the data and then follow it with a UNION.

 

Within the JOIN, you can DESELECT any redundant fields (like the RIGHT join key).

 

Connect the J Output from the join to the Union.  That will be connection #1.

Connect the L Output from the join to the Union.  That will be connection #2.

 

AutoConfigure by Name.

Ignore warnings.

Output ALL Fields

 

Your output from the union will contain the desired element(s) and it(they) will be NULL() when no match happens.

 

Thanks,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
michael_treadwell
ACE Emeritus
ACE Emeritus

I believe what you are looking for is a full outer join. You can see how to accomplish this here: http://help.alteryx.com/9.5/Join.htm

 

Scroll to the 'Doing Different Types of Joins' section

 

The full outer join will take all of the records from your right (R) input and join to them the records from the left (L) input. Performing the union of all outputs (R,J, and L) will add NULL for the rows that don't match, which you can then impute.

 

Screen Shot 2015-11-11 at 11.04.00 AM.png

danielbrun2
ACE Emeritus
ACE Emeritus

Should look something like this:

 

Skærmbillede 2015-11-11 kl. 17.03.42.png

cwilcoxmtn
7 - Meteor

That is perfect!!  Thank you.  I tried Join and Union separate, but didn't think to put them together.

 

Crystal

Labels
Top Solution Authors