Alteryx Designer Desktop Discussions

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

Need to concatenate single column data

Naga
8 - Asteroid

Hello,

 

I am struggling to get a solution where the structure is not static like below. I tried multi row formula, but it was giving a syntax error.

Conditions

1. Need the concatenated data to be in the 1st row of the sequence start. Here it is "A" in record 1, which is a key and separator from next block of data

2. It is 2 rows of data sample that needs to be brought in this format and then it has to be separated. Output 2 given below

 

Record #InputOutput
1A*15A*15|B*16|C*17|D*19|E*ab|F*45|G*def|H*DTP|I*456
2B*16 
3C*17 
4D*19 
5E*ab 
6F*45 
7G*def 
8H*DTP 
9I*456 
10A*LEA*LE|B*RS|C*45|D*32|E*123|F*124|G*156|I*129|
11B*RS 
12C*45 
13D*32 
14E*123 
15F*124 
16G*156 
17I*129 

 

2nd output

OutputABCDEFGHI
A*15|B*16|C*17|D*19|E*ab|F*45|G*def|H*DTP|I*456A*15B*16C*17D*19E*abF*45G*defH*DTPI*456
A*LE|B*RS|C*45|D*32|E*123|F*124|G*156|I*129|A*LEB*RSC*45D*32E*123F*124G*156 I*129

 

Thanks

Naga

6 REPLIES 6
VianneyM
Alteryx
Alteryx

hi @Naga,

 

attached the workflow that allows you to concatenate the data.

You need to add the multirow formula to avoid having empty rows after using the cross tab

 

VianneyM_0-1578508794401.png

 

Let me know if you have any questions

 

Best,

Vianney

Best,
Vianney
Naga
8 - Asteroid

Hi @VianneyM ,

 

Thanks for the quick response. I got the answer for my 2nd output. however, need solution for this to get concatenated.

 

INput

Record #Input
1A*15
2B*16
3C*17
4D*19
5E*ab
6F*45
7G*def
8H*DTP
9I*456
10A*LE
11B*RS
12C*45
13D*32
14E*123
15F*124
16G*156
17I*129

 

Output

Record #InputOutput
1A*15A*15|B*16|C*17|D*19|E*ab|F*45|G*def|H*DTP|I*456
2B*16 
3C*17 
4D*19 
5E*ab 
6F*45 
7G*def 
8H*DTP 
9I*456 
10A*LEA*LE|B*RS|C*45|D*32|E*123|F*124|G*156|I*129|
11B*RS 
12C*45 
13D*32 
14E*123 
15F*124 
16G*156 
17I*129 

Thanks
Naga

 

VianneyM
Alteryx
Alteryx

Hi @Naga,

 

Attached the complete solution from your input 

 

INput

Record #Input
1A*15
2B*16
3C*17
4D*19
5E*ab
6F*45
7G*def
8H*DTP
9I*456
10A*LE
11B*RS
12C*45
13D*32
14E*123
15F*124
16G*156
17I*129

 

to this output

 

VianneyM_0-1578510369478.png

 

Let me know if you have questions

 

Best,

Vianney

Best,
Vianney
dho111
7 - Meteor

Similar solution using Multi-Row Formula tool. Set "A" as the key. 

 

However, @VianneyM solution using Tile tool is the best way to avoid formula. 

 

concat.JPG

Naga
8 - Asteroid

Awesome...solved my problem....Thank you so much 

Naga
8 - Asteroid

Thanks @VianneyM ...solved my problem...I am learning lot from this group....:)

 

 

Labels