This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 22 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 51 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |