Alteryx Designer Desktop Discussions

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

How to concatenate one record with the remaining records from the same column?

AYESHASIDIKHA
8 - Asteroid

Suggest me how to concatenate one record with the remaining records.

For example, If I have thousand records then one record should concatenate with the remaining records.

 

This is the dummy data, Please help me in solving this

INPUT:

col ACol B
00A
01B
02C
03D
04E

 

Expected Output:

Col A1ColA2ColB1ColB2Relationship
0001AB00_01
0100BA01_00
0002AC00_02
0200CA02_00
0003AD00_03
0300DA03_00
0004AE00_04
0400EA04_00
0102BC01_02
0201CB02_01
0103BD01_03
0301CB03_01
0104BE01_04
0401EB04_01
0203CD02_03
0302DC03_02
0204CE02_04
0402EC04_02
0304DE03_04
0403ED04_03
6 REPLIES 6
FrederikE
13 - Pulsar

Hey @AYESHASIDIKHA,

 

You can use an "Append" tool with both inputs from the same source.

 

FrederikE_0-1686745923364.png

FrederikE_1-1686745935384.png

 

ShankerV
17 - Castor

Hi @AYESHASIDIKHA 

 

One way of doing this.

 

ShankerV_0-1686746300133.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @AYESHASIDIKHA 

 

Step 1: Input data

ShankerV_0-1686746353699.png

 

 

Step 2: 

 

ShankerV_1-1686746370802.png

 

ShankerV_2-1686746379162.png

 

 

Step 3: 

 

ShankerV_3-1686746394030.png

 

ShankerV_4-1686746401687.png

 

 

Step 4: 

 

ShankerV_5-1686746420801.png

 

ShankerV_6-1686746429171.png

 

 

Step 5: 

 

ShankerV_7-1686746446983.png

 

ShankerV_8-1686746455930.png

 

Step 6:

 

ShankerV_9-1686746473077.png

 

ShankerV_10-1686746481274.png

 

Many thanks

Shanker V

AYESHASIDIKHA
8 - Asteroid

Thank you Everyone, It really helped me. 

Also, I would like to know if I have 2989441 records i want output in excel, Only few records are getting in the output file remaining are getting truncated. How to deal with? 

 

 

Thanks in advance

ShankerV
17 - Castor

Hi @AYESHASIDIKHA 

 

You can overcome the issue of truncation by saving the file in .CSV format

 

 

Many thanks

Shanker V

 

AYESHASIDIKHA
8 - Asteroid

Hi,

 

Thankyou for the solution, i want the output in a particular order which i have mentioned in the expected output.

Labels