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 @all,
I have the following table:
attribute | value1 | value2 | value3 | value4 | value5 |
A | 11 | 0 | 0 | 0 | 0 |
A | 0 | 22 | 0 | 0 | 0 |
A | 0 | 0 | 33 | 0 | 0 |
A | 0 | 0 | 0 | 44 | 0 |
A | 0 | 0 | 0 | 0 | 55 |
B | 13 | 0 | 0 | 0 | 0 |
B | 0 | 23 | 0 | 0 | 0 |
B | 0 | 0 | 33 | 0 | 0 |
B | 0 | 0 | 0 | 43 | 0 |
B | 0 | 0 | 0 | 0 | 53 |
and would like to transform the table into following structure:
attribute | value1 | value2 | value3 | value4 | value5 |
A | 11 | 22 | 33 | 44 | 55 |
B | 13 | 23 | 33 | 43 | 53 |
What's the best way to realize this in PowerQuery?
Thanks in advance!
Solved! Go to Solution.
Use Group by
https://docs.microsoft.com/en-us/power-bi/desktop-common-query-tasks#group-rows
Use Group by
https://docs.microsoft.com/en-us/power-bi/desktop-common-query-tasks#group-rows
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 |
---|---|
112 | |
97 | |
85 | |
68 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |