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
Given the data below I'd like to et the total of "valor" grouped by year and university.
Say if I have this sample of data, the desired result is stored in the D column
A | B | C | D
2 | X | 5 | 5
3 | X | 5 | 5
2 | Y | 5 | 10
2 | Y | 5 | 10
Solved! Go to Solution.
Try following
=Calculate(sum(TableName[ColumnC]),allexcept(TableName,TableName[ColumnA],TableName[ColumnB]))
Try following
=Calculate(sum(TableName[ColumnC]),allexcept(TableName,TableName[ColumnA],TableName[ColumnB]))
Thanks! It solves the issue I was having with my data.
Is there any other way to do it? I am starting with Power BI and I'd like to know if there's any othe way to achieve this, thanks in advance!
Another way as a calculated column could be
= CALCULATE ( SUM ( TableName[ColumnC] ), FILTER ( TableName, TableName[ColumnA] = EARLIER ( TableName[ColumnA] ) && TableName[ColumnB] = EARLIER ( TableName[ColumnB] ) ) )
Thanks! Could you explain the EARLIER? I don't seem to get its functionality quite right
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 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |