Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Concate Strings from different Input Data Tools

mathias_schnoor
11 - Bolide

Hey!

 

I have two Input-Data Tools

Each Input Data Tool is connect on a csv-file. (CSV-File 1, CSV-File 2)

The first csv file (CSV-File 1) has one row, and the second csv-file ( CSV-File 2) has lots of rows.

 

It is possible in Alteryx to concate each row from  CSV-File 2 with a column the row from CSV-File 1

 

Example:

CSV-File 1

fistname; lastname

1;foo;  bah

 

CSV-File 2

text1;text2;text3

1; my fristname is; my lastname is

2, my fristname is; my lastname is

3; my fristname is; my lastname is

4; my fristname is; my lastname is

...

 

Result:

resulttext

1;my fristname is foo; my lastname is bah

2;my fristname is foo; my lastname is bah

3;my fristname is foo; my lastname is bah

4;my fristname is foo; my lastname is bah

 

 

Mathias

5 REPLIES 5
mathias_schnoor
11 - Bolide

Hey!

 

I had found the Appand Fields Tool on myself!

 

Concate_Rows_from_DataInputTool.PNG

Is the an other solution?

 

Mathias

s_pichaipillai
12 - Quasar

Hi 

i think if we have ID on both source, we can just join them both then add forumula tool to Concate

 

something like below

 

mat.PNG

 

PFA the same and let me know if any questions

 

mathias_schnoor
11 - Bolide

Hey!

 

You get as result only one row with concate columns.

 

My desired solution should be have a concate for each row in Input Data Tool 2 and Input Data Tool 1.

So I think to use the Appens Fields Tool, is the better solution!?!

 

(See attachment)

Mathias

 

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

Only a few edits.  When you have fields to append, they go to the Source input and get appended to the TARGET.  I also use the field configuration in the APPEND tool rather than have another SELECT on the canvas.  If you are making something STRING 500 bytes, you should have a VSTRING or VW_String type.  You may want to allow for the BIG string, but you don't want to always take that space. Using VARIABLE STRING gives you the flexibility.  I also got rid of those ROW ID fields because you didn't use them.

 

Tip:  If you are joining 2 sets of data that are in the EXACT same sequence (eg row ID), you can JOIN them using JOIN BY RECORD POSITION.  This is FASTER than by KEY.  If one has more records, than the other, those records will fall into either the L or R outputs.  Remember that the sequence of records must be identical.

 

Capture.PNG

 

Thanks,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
mathias_schnoor
11 - Bolide

Hey MarqueeCrew,

 

thank you for your support.

 

Mathias

Labels