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

Alteryx Designer Desktop Discussions

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

Split multi values columns into rows column wise

alirezatb
5 - Atom

Hi,

I have a table with the following structure

 

StateArea NameVal1 Val2
AKAlaska A44,33,22,661,2,3,4
ALAlabama11,22,33,442,3,4,5

I need to change the data layout to the following

 

StateArea NameVal1Val2
AKAlaska A441
AKAlaska A332
AKAlaska A223
AKAlaska A664
ALAlabama112
ALAlabama223
ALAlabama334
ALAlabama445

 

Any Help is appreciated.

Regards

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @alirezatb ,

 

Here are two ways you can do it. The first method assumes that the number of concatenated values under columns Val1 and Val2 are the same for each record.

 

The second method will address any missing values in one of  the two fields (in this example, I removed one value from Val2 column in the first record

 

AngelosPachis_1-1636810878965.png

 

Cheers,

Angelos

 

 

 

alirezatb
5 - Atom

Thank you so much.

Labels
Top Solution Authors