Forum Discussion
JNelson
3 years agoHelper II
Split 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
3 years agoCommunity Champion
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))
JNelson
3 years agoHelper II
You're a wizard! Thank you so much. Works perfectly!!