Alteryx Designer Desktop Discussions

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

Text to rows with multiple instances

aka_ash
8 - Asteroid

Hi,

Looking for some guidance on how I can split 2 columns and expand it to a 1 to 1 output.

Below is an input of sample data and a desired output

 

My data will also have data that may have spilled to the next row also and need it to be populated data from the cell above it.

I have highlighted these in orange the desired result for those.

 

Any assistance would be appreciated,

thanks in advance,

Ash

 

Input

Record IDItemsData 2
1AApple, Orange, CarrotLeft_A, Left_B, Right_C, Forward_A
  Forward_B, Back_D
1BOrangeLeft_B,Forward_C
1CBerry, Carrot, WatermelonLeft_B, Right_C, Forward_B

 

Output

Record IDItemsData 2
1AAppleLeft_A
1AAppleLeft_B
1AAppleRight_C
1AAppleForward_A
1AAppleForward_B
1AAppleBack_D
1AOrangeLeft_A
1AOrangeLeft_B
1AOrangeRight_C
1AOrangeForward_A
1AOrangeForward_B
1AOrangeBack_D
1ACarrotLeft_A
1ACarrotLeft_B
1ACarrotRight_C
1ACarrotForward_A
1ACarrotForward_B
1ACarrotBack_D
1BOrangeLeft_B
1BOrangeForward_C
1CBerryLeft_B
1CBerryRight_C
1CBerryForward_B
1CCarrotLeft_B
1CCarrotRight_C
1CCarrotForward_B
1CWatermelonLeft_B
1CWatermelonRight_C
1CWatermelonForward_B
11 REPLIES 11
aka_ash
8 - Asteroid

Great solution, thanks @atcodedog05 and @Jean-Balteryx 

Jean-Balteryx
16 - Nebula
16 - Nebula

You are welcome @aka_ash ! 🙂

Labels