Forum Discussion
saipawar
1 year agoHelper IV
Split column values dynamically
1;;ch=13;;rw=4.9;;rl=8;;rh=3.8;;tk=tapered;;tw=1.2;;tt=1.9;;md=Room%20Kit%20EQ;;dc=Dark;;dm=wall;;ss=75;;sc=2;;bs=0;;mc=4;;mt=Table%20Mic%20Pro;;mp=webex 1;;ch=16;;rw=6;;rl=9;;rh=3;;tk=ushape;;...
- 1 year ago
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("rdHBisIwEAbgdxG8SWia1lbCXHQ9LbuoeFgQD2ka2mJqJY10H3/HCehC9eZlJoSE+fjncJhwKXUNXEjpBkjYAruFHGsNgmH3J/DqYpwp8TwAZzF2jx1ftiXsuq6dxtFn47Gut1KWGj6UO+GhhUFZK2XfQ5Zi04Bfix4i/Kghwephrwpr8OdXo7FuXIe3FxhMYX4nx9ldNyfdnGyLYCPZta/RRjBBnPX25wUhj0aEmAgr09jmXAXE0/EJTRcso/mCpSSIWTJOh7KJbi8e2SyVe2FKQyz8n4mT6bs7m+dJZGQJEs4JEhjOVFd7m0RLysfLoXDfuJ3jHw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1, Int64.Type), #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Added Index", {{"Column1", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column1"), #"Filtered Rows" = Table.SelectRows(#"Split Column by Delimiter", each ([Column1] <> "" and [Column1] <> "1")), #"Split Column by Delimiter1" = Table.SplitColumn(#"Filtered Rows", "Column1", Splitter.SplitTextByEachDelimiter({"="}, QuoteStyle.Csv, false), {"Attribute", "Value"}), #"Pivoted Column" = Table.Pivot(#"Split Column by Delimiter1", List.Distinct(#"Split Column by Delimiter1"[Attribute]), "Attribute", "Value") in #"Pivoted Column"How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.
Ashish_Mathur
1 year agoSuper User
Hi,
Based on the data that you have shared, show the expected result very clearly.