Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi all,
I have the data in the below format -
And I want to convert this data in the below format -
Can someone help with the steps ?
I tried using the 'Split Column' and 'Pivot Column' but not able to get it right.
Thanks in advance
Solved! Go to Solution.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUUpOLE7VKUjMyUkt0SlPzUzPKAEKGhroGBnoGBoYKMXqRCs5QZUBKSNTsIgzkAlRDNUK1gPSBNQRCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
Columns = Table.ColumnNames(Source),
#"Separated text" = Table.TransformColumns(Source, {{Columns{1}, each Text.Split(_, ",")}, {Columns{2}, each Text.Split(_, ",")}}),
#"Combined columns" = Table.CombineColumns(#"Separated text", List.Skip(Columns), each Record.FromList(_{1}, _{0}), "Combined"),
#"Expanded Combined" = Table.ExpandRecordColumn(#"Combined columns", "Combined", {"case", "pallet", "weight"})
in
#"Expanded Combined"
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUUpOLE7VKUjMyUkt0SlPzUzPKAEKGhroGBnoGBoYKMXqRCs5QZUBKSNTsIgzkAlRDNUK1gPSBNQRCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
Columns = Table.ColumnNames(Source),
#"Separated text" = Table.TransformColumns(Source, {{Columns{1}, each Text.Split(_, ",")}, {Columns{2}, each Text.Split(_, ",")}}),
#"Combined columns" = Table.CombineColumns(#"Separated text", List.Skip(Columns), each Record.FromList(_{1}, _{0}), "Combined"),
#"Expanded Combined" = Table.ExpandRecordColumn(#"Combined columns", "Combined", {"case", "pallet", "weight"})
in
#"Expanded Combined"
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
90 | |
84 | |
70 | |
49 |
User | Count |
---|---|
141 | |
120 | |
112 | |
60 | |
58 |