Forum Discussion
Raveein26
2 years agoRegular Visitor
Getting wrong row subtotals in matrix table.
In our Power BI report, we have a calculated column (Column C) defined as follows: Column C = Column A / Column B. The requirement is to get the subtotals for Column C as the sum of individual rows o...
Anonymous
2 years agoNot applicable
Hi Raveein26 ,
Generally, the calculated columns do not have subtotal errors in the matrix, this generally occurs in measure, can you share sample data and sample output in tabular format? Or sample pbix after removing sensitive data. We can understand the issue better and help you.
You can also try the following dax:
MeasureC_if=
var _table1=
SUMMARIZE('Table','Table'[Group],"Value",[MeasureC])
return
IF(
HASONEVALUE('Table'[Group]),[MeasureC],SUMX(_table1,[Value]))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Raveein26
2 years agoRegular Visitor
I had three group in row filed called Country, Country region and Pin code. In your measure if I use only one field country or Country region or pin code I am getting wrong total how to resolve it?