Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |