Alteryx Designer Desktop Discussions

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

How to Append record on just the common record and not on the group

madhurinani
8 - Asteroid

Hello,

How to append only the common records between 2 tables but only on that record row# and not the whole group?

Both the below tables are different datasets.

 

I tried using append, but then the data just duplicates and creates like a cross join.

I also tired using Join condition and its not working somehow.

Where would I be going wrong?

 

GroupNamesCOUNT
1A1
1B2
1C3
1D4
1E5
1F6
1Total21
2B4
2C5
2E6
2F7
2Summary22

 

 

Namesmedian
Total5
Summary6

 

 

O/p expected.

GroupNamesCOUNTMedian
1A1 
1B2 
1C3 
1D4 
1E5 
1F6 
1Total215
2B4 
2C5 
2E6 
2F7 
2Summary226
4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

Hey @madhurinani,

Here is one way to do this:

IraWatt_0-1658860634601.png

I use the record ID Tool to maintain the order after the Join.

 

For more information on some of the Tools used the community has some quick and easy videos on Join and the Sort Tool here https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Writing%20... 

 

Any questions or issues please ask! 
Hope that Helps

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

ChrisTX
15 - Aurora

Add a Record Id, to use as a sort field

Join from Input 1 to Input 2 on field Names

Take the Left output anchor and the Join anchor and feed into a Union tool

Sort by the Record Id field

Optionally use a Select tool to drop the Record Id field

 

If you're just starting out, take some time and try Learn > Academy > Learning Paths

 

Chris

madhurinani
8 - Asteroid

@IraWatt : you saved me. 
Thanks. I would also look through the URL as well.

 

Thanks again

IraWatt
17 - Castor
17 - Castor

No worries @madhurinani 😄

Labels