Forum Discussion

KIT_LKN's avatar
KIT_LKN
Frequent Visitor
3 years ago
Solved

Matrix total is wrong - SUMX doesn't work

Have written a dax, and put it in to my matrix. All values are correct, marked with blue V in picture below. But the Total, marked out with red, is clearly not correct. Have tried SUMX and VALUES, b...
  • KIT_LKN's avatar
    KIT_LKN
    3 years ago

    Thanks for responding to my question. 

    I'm using a company data model, and I'm not allowed to add as much detailed information as I want to. That's what that black paint all about.

     

    Meanwhile I've figured out, as you have ponted out, that the error is in the "IF"-bit. I've removed that part from the measure, and added it to a separate column. And I've also added a return statement for what will happen when the value is not 1 (, blank()). And now, when I combine this, the total is correct. ðŸ˜Š