Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

find and replace column names based on other input file

Kutay
7 - Meteor

Hi All,

 

I get weekly raw data and separate  files for vlookup. The input file have more than 700 columns and looks like this:

 

userIDvalidityOfinterestAffinity_1validityOfinterestAffinity_2UDF_cookieMatches__array_1__4__8__10__14__24__12__20__90__128__130__140___20_1UDF_cookieMatches__array_1__4__8__10__14__24__12__20__90__128__130__140___20_0UDF_cookieMatches__array_1__4__8__10__14__24__12__20__90__128__130__140___1_0

UDF_cookieMatches__array_1__4__8__10__14__24__12__20__90__128__130__140___1_1

12345

0.2   z14c473e2-3acf-41d7-a34b-384b555e80c6t42t473e2-3acf-41d7-a54z-384b555e80c6

56789

0.124531a4c873e2-3acf-41d7-a34b-384b754e70a0  k12c463f2-3acf-22d7-a34b-384b655e30c8
112220.567568342  b4c473e2-3acf-41d7-a34b-384b555e80b3  

 

validityOfinterestAffinity columns are going up to 700 and udf is up to 20. None of the columns are fix, which means I might get one week only validityOfinterestAffitinity_1 and validityOfinterestAffitinity_500 the other week from validityOfinterestAffitinity_253 to validityOfinterestAffitinity_293 same for the udf columns.

 

Vlookup files are also dynamic and the definitions of those numbers might change from one week to another as well.

 

Vlookup file for validityOfinterestaffinity looks like this 

 

Taxonomy IDTaxanomy
1cars
2autoparts
3music

...

 

Vlookup file for UDF looks like this 

Partner IDPartner
1xandr
2google
20adscale

...

desired output that I am looking for is sth like this 

 

userIDvalidityOfinterestAffinity_carsvalidityOfinterestAffinity_autopartsadscale_1adscale_0xandr_0

xandr_1

12345

0.2   z14c473e2-3acf-41d7-a34b-384b555e80c6t42t473e2-3acf-41d7-a54z-384b555e80c6

56789

0.124531a4c873e2-3acf-41d7-a34b-384b754e70a0  k12c463f2-3acf-22d7-a34b-384b655e30c8
112220.567568342  b4c473e2-3acf-41d7-a34b-384b555e80b3  

 

Thank you so much for your help!

 

 

Best,

Kutay

 

3 REPLIES 3
wwatson
12 - Quasar

Not knowing your data very well I would suggest this could be a job for the dynamic rename tool found in the developer toolbar:

 

wwatson_0-1597151048891.png

 

ImadZidan
12 - Quasar

Hello,

 

I can see what you are trying to do. However, according to the data provided, the UDF configuration is slightly different. I followed the pattern provided.

Well, have a look, it will hopefully give you an idea or a way forward.

 

I hope it helps.

DavidP
17 - Castor
17 - Castor

Hi @Kutay 

 

This is how I would do it based on the data you provided

 

DavidP_0-1597194494017.png

 

Labels
Top Solution Authors