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!Get Fabric certified for FREE! Don't miss your chance! 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!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 102 | |
| 37 | |
| 26 | |
| 26 |