Forum Discussion
jps_HHH
1 year agoHelper II
help to transform a table on Powerquerry
I have transformed a table from excel file (throught powerquerry) to a unique table to be used in PBI. At the moment the table contains: Column 1 Column 2 Column 3 Co...
- 1 year ago
I need further assistance since I've made more changes at the file. So It is not enough to copy the code and paste it (because it will clean all previous steps done by me).
Omid_Motamedise
1 year agoSuper User
Hi jps_HHH
copy the following code and past it into the advanceeditor.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSsssTk7MqUxNLDIyVdJRCs4sSTUE0o4FRZk5QNrUoDg1J6cYyAIrLAIrNIEqNEJSaGIGURirg9NM38RKIGlEyESIMmNjguZ5lealAilDUwIGQtWZmhJhYg7IbhNCToSqMyLsRsfS9NLiEpBaQ0IBCVcJMzUWAA==", 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]),
#"Transposed Table" = Table.Transpose(Source),
Custom1 = Table.Combine(List.Transform(Table.Split(#"Transposed Table",4),Table.Transpose))
in
Custom1