Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello
How can I change the layout of my data in the horizontal format?
The current layout of the data is as below.
| unique_key | Header | Value |
| 1015422 | EMD Reason | Select |
| 1015422 | FF1 | M713810 |
| 1015422 | FF10 | NA |
| 1015422 | FF13 | NA |
| 1015422 | FF16 | TEST 1 |
| 1015422 | FF2 | CP214392 |
| 1015422 | FF20 | OPEN |
| 1015422 | FF3 | NA |
| 1015422 | FF33 | DEDW3EE |
| 1015422 | FF45 | LONDON |
| 1015422 | FF46 | 200 |
| 1015422 | FF47 | KMKMHK9 |
| 1015422 | FF48 | Select |
| 1015422 | FF75 | Select |
| 1015422 | Traveller Guid | HUHJI-HUHU-NKN-2342 |
| 1015423 | FF33 | NA |
| 1015423 | FF46 | NA |
| 1015423 | FF47 | NA |
| 1015423 | Traveller Guid | NA |
Required Layout
| Unique Key | Reason | FF1 | FF10 | FF13 | FF16 | FF2 | FF20 | FF3 | FF33 | FF45 | FF46 | FF47 | FF48 | FF75 | Traveller Guid |
| 1015422 | Select | M713810 | NA | NA | TEST 1 | CP214392 | OPEN | NA | DEDW3EE | LONDON | 200 | KMKMHK9 | Select | Select | HUHJI-HUHU-NKN-2342 |
| 1015423 | TEST | NA | NA | NA | NA |
Solved! Go to Solution.
to know how to do this watch my video
Add a matrix to the report canvas and select "unique key" as row, "Header" as column and "Value" as value
pls try this
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("dZDLDoIwEEV/hbCGpC8ElkaKaG0hAnFBWBDtwoRogo/vt12BGbqZm94z6Z2ZrvMxwhEjxA98LjPvrIfX82EetR719e33wbIjz7GpMsY0wQgyZERtoU8d/sZIw+vGw4DZuqsIZjQlENqgsuIKEEcStX7GswvlHEAWGTmVKivhf8yOSBDclcVGhBSyECmEifuAceRizTR89Tjqydt/7jdjFG1xPISmtqESKiSULU9B583+Nqbz4Gt+vOaDaNvR/wA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [unique_key = _t, Header = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"unique_key", Int64.Type}, {"Header", type text}, {"Value", type text}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[Header]), "Header", "Value")
in
#"Pivoted Column"
to know how to do this watch my video
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 35 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |