Alteryx Designer Desktop Discussions

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

Combining rows

sreekanthac
8 - Asteroid

Hello Community,

 

I have a situation where I need to combine the records or rows. I am looking for a possible solution. 

 

My source file is as shown below. I need to generate one row per Singer combining all the songs.

 

NameLast NameSong1Song2Song3Song4Song5
MichealJacksonxxx zzzaaa 
MichealJackson yyy  bbb
ShakiraRipoll111 333  
ShakiraRipoll 222  555
ShakiraRipoll   444 

 

 

The output should look like below.

 

NameLast NameSong1Song2Song3Song4Song5
MichealJacksonxxxyyyzzzaaabbb
ShakiraRipoll111222333444555

 

 

Thanks in advance for your input.

 

BR

Sreekanth

5 REPLIES 5
sreekanthac
8 - Asteroid

I found the solution as below.

 

In case you have any other suggestions, do let me know.

sreekanthac_0-1640676230899.png

 

binuacs
21 - Polaris

@sreekanthac 

 

Spoiler
binuacs_0-1640676462018.png

 

sreekanthac
8 - Asteroid

@binuacs Thanks for the suggestion. I was just wondering with many more fields (say 85 which infact is my actual situation), is using Summarize Tool a good practice?

binuacs
21 - Polaris

@sreekanthac I would suggest you to try both options and see the performance. 

Qiu
21 - Polaris
21 - Polaris

@sreekanthac 
I would say that the solution provided by @binuacs is more dynamic and can handle any number of columns without changing the flow.

While Summarize tools is more static in the sense of columns.

Labels
Top Solution Authors