|
也来凑个热闹
- let
- Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("dY+/bsIwEMZfxcp8keyL/44ImDt2iDKlDCykonTozgBLR5YidfJSMTC4Qk15nCZk4xVq1yCBVKST7nff+b7z5XmSQAh23xveXeX+RS4gT3plWT1PZqRfPYx841wORk/ldPw4G1cTryJFljI80cv0PymYSUZpCK8e3lz7an/qutnZtF1vmvWWpKR5rwPvbPc594+IQZASSUAG1CgQnMVKSUDkp46hGpTS5HIJ3lzSOts5FyaFBq7on4k0GiSPrBmgjt5aUsiEunLObn//yx2+F41dkeN+wbJu9XHcL4ONAoXxDMOAny/iILWIKISXPRfFLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t, Column5 = _t, Column6 = _t]),
- #"All Rows" = Table.ToRows(Source),
- #"New Headers" = List.Transform(List.Zip(List.FirstN(#"All Rows", 2)), each Text.Trim(Text.Combine(_, "#(tab)"))),
- #"New Table" = Table.PromoteHeaders(Table.FromRows({#"New Headers"} & List.Skip(#"All Rows", 2)), [PromoteAllScalars=true]),
- #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"New Table", {"Account Code", "Account Description"}, "Attribute", "Amount"),
- #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter("#(tab)", QuoteStyle.Csv), {"Attribute.1", "Attribute.2"})
- in
- #"Split Column by Delimiter"
复制代码 |
评分
-
2
查看全部评分
-
|