|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
也就多添一行PQ的事
- let
- Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jZTNTgIxFIXfZZaGTm7baTuznAlGIrpBFxLCu+hGExVxYVyQaPwhwSWGhcEY36Yib2En/KTtrQMrhuHrzDnnnkunE+nb3mw0jmrR7/f05/ncXMzeJ/OLnrmAWAIzn2uECz2dIEiBsiHdvzZU6Gkiibo188bHK93/MHcoqLwoT7ye6ZtBeSPm5Vfnd1J3idQmTtotQRmlucss31PlTDmaOexQSOeng9ndG5Ytuc3+D8qMugYX8sCXJ20Lx+0m4WAeWhlFSRlmv+EzjlE9vEeiErGleqUSG0wAEb69+hERArnjIijcn6MTwkGTJGUGBChxYmChSepxf/7wgrOvIXA48kAagxNHKDFBUzRGo60FrKiwsIaqhr1MzJ+02NxXqRx/LAZzOmiRhTmUGUMmE1BUoFWyFzIDTzql3AOc86ZV2RYdFSrFQ8nRjDMmHezySX99hmGjTPlT5IIx4pfVVn+4Z6qaoUInQYZ4q5ht21S1WJBNTS0XMpBKgZuvuGt0t5Asp9DwbDh/nCumqGBWVgs/jm73Dw==", 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, Column7 = _t, Column8 = _t, Column9 = _t, Column10 = _t, Column11 = _t, Column12 = _t]),
- Transformed = Table.FromRecords(List.Combine(List.Transform(List.Split(Table.ToColumns(Source),4), each List.Transform(List.Split(List.Transform(List.Zip(_), each Record.FromList({_{1},_{3}},{_{0},_{2}})),2), each _{1}&_{0}))))
- in
- Transformed
复制代码
|
|