Alteryx Designer Desktop Discussions

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

Join but populate only first match

pnair041
5 - Atom

Hi, I am working on an engagement that requires me to join multiple tables, however, I wish to populate only the first match and not the entire data. For eg:

 

Tab 1 

Record ID   Name

1                 Charles

1                 Charles

1                 Charles

2                 James

2                  James

 

Tab 2 

Record ID Income

1                  200

2                  300

 

Desired Output

Record ID   Name      Income

1                 Charles     200

1                 Charles

1                 Charles

2                 James      300

2                 James

Any suggestions, please?

4 REPLIES 4
ShankerV
17 - Castor

Hi @pnair041 

 

Please have the unique from the dataset 1.

Then do the join with D1 and D2.

Then union the output for unique false node and J node of Join.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @pnair041 

 

Please find the sample use case for your scenario.

 

ShankerV_0-1678967697851.png

 

 

Step 1: Input data1.

Step 2: Input data2.

ShankerV_1-1678967753842.png

 

Step 3: 

 

ShankerV_2-1678967770987.png

 

ShankerV_3-1678967777006.png

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

Hi @pnair041 

 

Step 4: Join tool

ShankerV_0-1678967817010.png

ShankerV_1-1678967830140.png

 

 

Step 5:

 

ShankerV_2-1678967848792.png

 

ShankerV_3-1678967862412.png

 

Hope this helps!!!!

 

Many thanks

Shanker V

pnair041
5 - Atom

That was extremely helpful, thank you so much.

Labels