Forum Discussion
Total in a matrix is not considering negative values
Hi Cavring,
Could you please post sample data of your original tables and formulas you use to calculate column/measures?
According to your description and based on the data in your screenshot, I am not able to reproduce your issue. I create a table using the following data, when I create a Matrix visual, everything works well. We need to know your formulas and original data to provide detailed troubleshoot steps.
Thanks,
Lydia Zhang
Hi Anonymous
Here's my data:
Just so you know I found a solution and cleaned up my formulas. I have made a new measure, but it doesn't reproduce the error 100%.. The total for the whole matrix is still wong though. It doens not sum up correctly.
- Vvelarde9 years ago
Community Champion
Looking your data the fast solution in this scenario is:
TS Total Sum med fortegn = IF ( HASONEVALUE ( Kontooversikt[Hovedpost] ), [Total Sum] * [Fortegn], CALCULATE ( [Total Sum] * [Fortegn], Kontooversikt[Hovedpost] = "0 Variable inntekter" ) + CALCULATE ( [Total Sum] * [Fortegn], Kontooversikt[Hovedpost] = "1 Faste kostnader" ) + CALCULATE ( [Total Sum] * [Fortegn], Kontooversikt[Hovedpost] = "2 Variable kostnader" ) + CALCULATE ( [Total Sum] * [Fortegn], Kontooversikt[Hovedpost] = "3 Finnans inntekter" ) )For now you can solve with this, and then with more time to analyze tour data you can optimize this dax.