Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi to all!
I have this data:
| Pais | Aire | Agua | Tierra | Fuego |
| Colombia | 1 | 3 | 2 | |
| Argentina | 2 | 2 | 1 | |
| México | 1 | 1 | 2 | |
| Perú | 1 | 3 | 1 |
And I like to transform with Power Query, like this:
| Pais | Objeto |
| Colombia | Aire |
| Colombia | Tierra |
| Colombia | Tierra |
| Colombia | Tierra |
| Colombia | Fuego |
| Colombia | Fuego |
| Argentina | Aire |
| Argentina | Aire |
| Argentina | Agua |
| Argentina | Agua |
| Argentina | Tierra |
| México | Agua |
| México | Tierra |
| México | Fuego |
| México | Fuego |
| Perú | Aire |
| Perú | Agua |
| Perú | Agua |
| Perú | Agua |
| Perú | Fuego |
Thx in advance for your answers.
Solved! Go to Solution.
Unpivot all but the first columns,
add a column with nested lists with the numbers {1 thru Value},
expand this column,
remove this column and the Value column,
adjust the header Attribute to Objeto as illustrated in this video.
Unpivot all but the first columns,
add a column with nested lists with the numbers {1 thru Value},
expand this column,
remove this column and the Value column,
adjust the header Attribute to Objeto as illustrated in this video.
Great MarcelBeug! Works like a charm. Blessings to you!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |