Forum Discussion
JNelson
Helper II
3 years agoSplit column then pivot back
Hello, Unfortunately I have a lot of messy data to cleanse. We get job order information with the date, job number, products (anywhere from 1 to 5 products) and quantities associated with the a...
- 3 years ago
NewStep=#table(Table.ColumnNames(PreviousStepName),List.TransformMany(Table.ToRows(PreviousStepName),each List.Zip(List.Transform(List.Skip(_,2),each Text.Split(_,"/"))),(x,y)=>List.FirstN(x,2)&y))
wdx223_Daniel
Community Champion
3 years agoNewStep=#table(Table.ColumnNames(PreviousStepName),List.TransformMany(Table.ToRows(PreviousStepName),each List.Zip(List.Transform(List.Skip(_,2),each Text.Split(_,"/"))),(x,y)=>List.FirstN(x,2)&y))
JNelson
Helper II
3 years agoYou're a wizard! Thank you so much. Works perfectly!!