We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Group and concatenate records with multiple variables as individual rows

jannet2014
6 - Meteoroid

Hello,

 

I have a table below where I am trying to concatenate each row and group it by Request_ID. In Alteryx, I am using the Transpose tool to convert columns into rows and then Summary tool to group by Request_ID and concatenate a newly created column with values.

 

Request_IDID_IntLine_IntWorkflow_Int
710197042
710197142
710197253
710197352
710197452

 

However, since I am grouping by Request_ID, the Summary tool concatenates everything in a single row as opposed to multiple rows.

 

Current Result

710,1970,4,2,1971,4,2,1972,5,3,1973,5,2,1974,5,2

 

Expected Result

Request_IDID_IntLine_IntWorkflow_IntExpected Result
710197042710,1970,4,2
710197142710,1971,4,2
710197253710,1972,5,3
710197352710,1973,5,2
710197452710,1974,5,2

 

Also, in my actual data, I have hundreds of rows and columns so I am trying to figure out the most efficient way to do it without manually concatenating each row. 

 

Appreciate if anyone can point me in a right direction.

2 REPLIES 2
seven
12 - Quasar

Hi,

 

the trick is to use a RecordID and join back.

seven_0-1596487255901.png

 

grazitti_sapna
17 - Castor

HI @jannet2014 , PFA the workflow for the desired output.

 

grazitti_sapna_2-1596519094337.png

 

 

Thanks.

 

 

Sapna Gupta
Labels
Top Solution Authors