Forum Discussion

JNelson's avatar
JNelson
Helper II
3 years ago
Solved

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...
  • wdx223_Daniel's avatar
    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))