Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Subracting measures and getting the wrong answer

I have created 2 measures that are working wonderfully.  I now need to subtract one from the other so I created a third measure: Hardware GP2 = 'Measures 1'[Hardware Sales] - 'Measures 1'[Hard...
  • Anonymous's avatar
    Anonymous
    7 years ago

    I think I have found the problem. At some point through the calculations, the signage of one of the figures is being swapped. In the final measure both input values are shown as a negative (hence the incorrect value is being calculated vs the expected value), however pre input one of these values should be a positive.

    I will now step through the calculations to pin point exactly what is going on here.

     

    Many Thanks to you all for confirming that the DAX should work which ruled this out for me as a variable.