Alteryx Designer Desktop Discussions

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

Splitting Columns based on data in another.

joconnor224
5 - Atom

Hi everyone, I'm new to alteryx and have encountered a problem with the dataset I am working on. If anyone can help me that would be great thanks! 

 

 Vehicle/ColourNumber
 Van10
0Blue6
0White4
 Car20
0Red15
0Silver2
0Black3
 Truck4
0White4
 Boat2
0Orange1
0Pink1


I am trying to split the Vehicle/Colour column into its correct format. The colours are marked by a 0 in the first column where as the vehicles are not. I then also need the first row to be deleted (where the vehicle type was first listed. My end result would be as follows:

VehicleColourNumber
   
VanBlue6
VanWhite4
   
CarRed15
CarSilver2
CarBlack3
   
TruckWhite4
   
BoatOrange1
BoatPink1

 

 

Thanks everyone. 

2 REPLIES 2
RolandSchubert
16 - Nebula
16 - Nebula

Hi @joconnor224 ,

 

you can use the Multi-Row Formula tool. I've attached a sample workflow.

 

Let me know if it works for you.

 

Best,

 

Roland

grazitti_sapna
17 - Castor

Hi @joconnor224 , try this if it works.

 

grazitti_sapna_0-1594724375482.png

 

Sapna Gupta
Labels