Alteryx Designer Desktop Discussions

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

Concatenate two fields from different rows

harinder1301
8 - Asteroid

Hi

I would like to concatenate the unique fields from this sample table as shown below:

 

rowidcol1col2col3 col4
11test1abc1xyz1
12test1null 
13nullnull 
14nullnullxyz1
21test11abc11xyz1
22test12abc12xyz1
23nullnull 
31test21abc21xyz21
32test22abc22xyz22
     
     
     
Required Output    
rowidcol2col3 col4 
1test1abc1xyz1 
2test11,test12abc11,abc12xyz1 
3test21,test22abc21,abc22xyz21,xyz22 

 

I am using the summarize tool but I am not getting an option to concatenate the unique fields .Appreciate your help.

 

Regards

Harinder

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @harinder1301 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1633512692834.png

 

1. Convert rows to columns

2. Filter null values

3. Groupby on rowid column name and value to get unique values

4. Using crosstab with aggregate mode as concat to convert it to the output table.

 

Hope this helps : )

harinder1301
8 - Asteroid

Perfect. Thank you very much!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @harinder1301 

Cheers and have a nice day!

Labels