Forum Discussion
nick9one1
Helper III
3 years agoTotal isn't being calculated correctly
I have this Matrix, built from two tables. Category table related one to many to this table I need to calculate a score for each category. Performance score =...
- 3 years ago
Hi nick9one1 ,
Measures are calculated by context, in other words, measure is calculated based on the value of current row.
From your snapshot can see, the result of total is correct in calculation: (145/163*20)/20=88.96%
If you want the total is sum of all rows, try the solution:
Measure = VAR _T = ADDCOLUMNS ( 'Categories', "Column", [Performance Score] ) RETURN IF ( HASONEVALUE ( [Category Ordered] ), [Performance Score], SUMX ( _T, [Column] ) )Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PabloDeheza
Solution Sage
3 years agoHi nick9one1 !
Please refer to this videos, explaining the behaviour of totals in Power BI:
Why Power BI totals might seem wrong
Let me know if that helps!