Alteryx Designer Desktop Discussions

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

Joining data with each column

Divyajyothi7
7 - Meteor

Hi Team

I have following data-set, I would like to optimize multiple V-lookups. Instead of using multiple joints and unions

I'm looking to have dynamic expected output where it can dynamically match even if new rows and columns are added.

 

 

old t_mold t_smold t_qat_smt_qat_sm2t_qa2t_sm3t_qa3t_sm4t_qa4t_sm5t_qa5
SD0789SD00341SD00551SD00441    SD00440.99
SD0445SD00670.5SD00992    AB00990.4444SD00880.75
SD0993SD00782SD00883SD00342SD00224RD99000.23SD00223.555

 

 

 

t_kmt_km
SD0022Pigeon
SD0034Monkey
SD0044Monkey
SD0055Pigeon
SD0067Monkey
SD0078Pigeon
SD0088Monkey
SD0099Pigeon
SD0789Monkey
SD0445Monkey
SD0993Monkey
AB0099Monkey
RD9900Pigeon

 

Expected Output: 

 

old t_mitmt_kitm(Name)old t_sitmOld_t_kitm(Name)old t_qanat_sitmt_kitm(Name)1t_qanat_sitm2t_kitm(Name)2t_qana2t_sitm3t_kitm(Name)3t_qana3t_sitm4t_kitm(Name)4t_qana4t_sitm5t_kitm(Name)5
SD0789MonkeySD0034Monkey1SD0055Pigeon1SD0044Monkey1      SD0044Monkey
SD0445MonkeySD0067Monkey0.5SD0099Pigeon2      AB0099Monkey0.4444SD0088Monkey
SD0993MonkeySD0078Pigeon2SD0088Monkey3SD0034Monkey2SD0022Pigeon4RD9900Pigeon0.23SD0022Pigeon
4 REPLIES 4
binuacs
20 - Arcturus

@Divyajyothi7 One way of doing this

binuacs_0-1682982207705.png

 

Divyajyothi7
7 - Meteor

I just want columns should be matched with dataset 2

and it should be dynamic, 

Divyajyothi7
7 - Meteor

is it possible to dynamically sort column headers as per expected output

because in future new columns might be added 

Instead of manual process

binuacs
20 - Arcturus

@Divyajyothi7 If you look at the column names provided in both the input files and the output file, they are different, for eg: 'old t_m' in the first data set, 't_km' in the second data set, and in the output, it will become 'old t_mitm'. So manual intervention is required, if you come up with a pattern or something in the output file field names, we can make it dynamic, here I am seeing some random names which are very difficult to make dynamic. If you have any suggestion let me know we can work on this, because i dont see any pattern to make it dynamic

Labels