Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Combining Columns into Row

prernaaher
7 - Meteor

Hello Everyone,

 

I am trying to get all passengers into one row.

 

Data:

prernaaher_0-1672861023661.png

 

Expectation: 

prernaaher_1-1672861068807.png

 

I tried summarize tool but could not achieve the result. I would really appreciate some help with this.

 

Thank you.

6 REPLIES 6
ShankerV
17 - Castor

Hi @prernaaher 

 

Please use the multi row formula, where you number as  1, 2, 3 and if the value is null then Previous row value.

 

this will create a column 

1

2

3

3

3

4

4

4

 

Then please perform the concat using summarize tool to get the desired output.

 

Many thanks

Shanker V

prernaaher
7 - Meteor

@ShankerV 

 

Could you please help me with an example workflow. Thank you :)

ShankerV
17 - Castor

Hi @prernaaher 

 

Please find the below expected output.

 

ShankerV_0-1672864134677.png

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @prernaaher 

 

Step 1: Input

ShankerV_0-1672864272171.png

 

Step 2: Multi row formula

ShankerV_1-1672864309901.png

 

ShankerV_2-1672864331513.png

 

 

Step 3: Summarize tool

ShankerV_3-1672864355197.png

 

Step 4: Join tool

 

ShankerV_4-1672864381326.png

 

Result:

ShankerV_5-1672864395930.png

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@prernaaher One way of doing this

 

binuacs_0-1672870549456.png

 

prernaaher
7 - Meteor

Thank you!! This worked as well

Labels