We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Combining two set of data with requirement

SH_94
11 - Bolide

Hi community,

 

I would like to ask how do combine two set of data with the following requirement.

If there is no value in original input data , then it will present as zero in the output data as per screenshot below

 

 

SH_94_0-1679019457195.png

 

Many thanks for th support.

 

5 REPLIES 5
ArtApa
Alteryx
Alteryx

Hi @SH_94 - Based on the provided description ID must also be zero. However, the desired output looks like it just took ID by position. I've built a solution to match a sample output:

ArtApa_0-1679026153240.png

 

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

I am not exactly sure what you mean by "If there is no value in original input data , then it will present as zero".

From the output table, I guess you want to keep all the records from Input2 table and

to fill in the values on Input1 table from top to down for each customer.

 

If that is the case,

1. Set sequence number for each customer for both input tables

2. Join the tables with Customer and Sequence Number.

3. Union Join and Right output

4. Replace Null values with 0

 

Workflow

Yoshiro_Fujimori_0-1679027290953.png

Output

Yoshiro_Fujimori_1-1679027313652.png

 

I do not know how you want to do with the ID. So I left it as Null.

 

SH_94
11 - Bolide

Hi @ArtApa ,

 

Many thanks for the prompt response.

 

May i know if there is way to make the workflow more dynamic if i have the data set below :

 

SH_94_0-1679031701035.png

 

Many thanks

 

ArtApa
Alteryx
Alteryx

Hi @SH_94 - I updated the workflow:

ArtApa_0-1679041655493.png

 

SH_94
11 - Bolide

Hi @ArtApa ,

 

 

Many thanks for the help and you really a life saver as i have been thinking of how to fix it for few days and decided to ask for help at the end.

 

Thanks a lot for the sharing and i just know it can be solved in this fantantic way.

 

 

Labels
Top Solution Authors