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.
Hello,
I have a table with values between 1-5 and ID numbers.
Something like the table below.
How do I find (/create a column or a table?) with the sums of values grouped by ID?
ID | Value |
14 | 3 |
14 | 2 |
14 | 5 |
14 | 1 |
27 | 5 |
27 | 5 |
27 | 5 |
27 | 4 |
39 | 3 |
39 | 4 |
39 | 4 |
39 | 3 |
How do I find (/create a column or a table?) with the sums of values grouped by ID?
So like this:
ID | Sum |
14 | 11 |
27 | 19 |
39 | 14 |
Solved! Go to Solution.
@sigridr , Pu them in a visual ID ( Don't Summarize) and value as SUm or use measure
sum(Table[Value])
If you need new table, Power Query group by
https://docs.microsoft.com/en-us/power-query/group-by
Dax
new table = summarize(table, Table[ID], "Sum", sum(Table[Value]) )
@sigridr , Pu them in a visual ID ( Don't Summarize) and value as SUm or use measure
sum(Table[Value])
If you need new table, Power Query group by
https://docs.microsoft.com/en-us/power-query/group-by
Dax
new table = summarize(table, Table[ID], "Sum", sum(Table[Value]) )
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 |
---|---|
111 | |
95 | |
77 | |
69 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |