Forum Discussion
Mic1979
1 year agoPost Partisan
Unpivot Columns using the list
Dear all, here my question. I have this sample table: I need to create a custom function to split the columns by the /, and then unpivot them to get this: As the original table is made...
- 1 year ago
Hi Mic1979
let
Source = Your_Source,
Text_Split = Table.TransformColumns(Source,
{{"Stuffing_Box_Material", each Text.Split(_, " / "), type text},
{"Body_Material", each Text.Split(_, " / "), type text}
}),
Expand1 = Table.ExpandListColumn(Text_Split, "Body_Material"),
Expand2 = Table.ExpandListColumn(Expand1, "Stuffing_Box_Material")
in
Expand2Stéphane
v-nmadadi-msft
1 year agoCommunity Support
Hi Mic1979 ,
I have used the code provided by slorin and modfied it slightly so that it would fit my 1000 row data model correctly.
Thanks and Regards
Mic1979
1 year agoPost Partisan
I thought you made a code with the list.
My bad.
Thanks.