Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Concatenate multiple rows

chris4987
7 - Meteor

Hi! I have the below Input and Output data for possibly concatenating across Multiple Rows. I am not sure that fits this workflow, but looking for any guidance! Thanks

 

Input

Client NameAddressDuplicate
James123 Starlight LaneYes
Christopher123 Starlight LaneYes
Steven456 Milky WayYes
David456 Milky WayYes
Jed456 Milky WayYes
Nehemiah789 Aurora BlvdNo
Sam101 Dipper Street

No

 

 

Output

Client NameAddressMailing Label
James123 Starlight LaneJames, Christopher
Christopher123 Starlight LaneJames, Christopher
Steven456 Milky WaySteven, David, Jed
David456 Milky WaySteven, David, Jed
Jed456 Milky WaySteven, David, Jed
Nehemiah789 Aurora Blvd 
Sam101 Dipper Street 
6 REPLIES 6
Luke_C
17 - Castor
17 - Castor

Hi @chris4987 

 

The summarize tool should be able to help you. See below screenshot with configurations. It will let you concatenate based on common fields, in this case address. 

 

Luke_C_0-1619461879889.png

 

messi007
15 - Aurora
15 - Aurora

@chris4987,

 

Please see below 

 

messi007_0-1619461877128.png

I did it using the concatenate function in the summarize tool 🙂

 

messi007_1-1619461934864.png

 

Attached the workflow,

 

Hope this helps!

Regards

 

AbhilashR
15 - Aurora
15 - Aurora

Hi @chris4987, the one way I would attempt to solve this is to concatenate the Client Names using the Summarize tool and joining it back to the original dataset on Address. Attached is a baseline workflow for you to build upon.  

chris4987
7 - Meteor

Thank you! This worked perfectly

vencric
8 - Asteroid

How to concatenate value in same row, till blank value is found. Ex.

Input:

 

Level   Prefix    Base         Concat

0          JH          1000  

1           KB         1001        KB-1001

2           BC         1002        BC-1002

1           CD         1003        CD-1003

0          AB          1004

1          AA          1005          AA-1005

 

Output:

 

 

Level   Prefix    Base         Concat                 OP

0          JH          1000                                     KB-1001;BC-1002;CD-1003

1           KB         1001        KB-1001

2           BC         1002        BC-1002

1           CD         1003        CD-1003

0          AB          1004                                     AA-1005

1          AA          1005          AA-1005

 

AbhilashR
15 - Aurora
15 - Aurora

HI @vencric, I would find a way to isolate sections of the data between two nulls (maybe using a multi-row formula tool) and then use the Concatenate option in the Summarize tool and think about joining back the summarized records to the source data. There are a few other ways you can approach this but hopefully this input helps you breakdown the problem into smaller steps.

Labels