Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Power BI Report mathematics issue

Greetings, I created a report for our Finance department and have had an anamoly point out.    The issue arises with this Dax Measure:  Mar Rebate = Sum('Brand Partners'[Rebate %])*Sumx('Sales H...
  • speedramps's avatar
    4 years ago

    SUMX is an iterator

    So 2% of [Mar Rebatable] is not the necessary the same as 2% of SUMX('Sales History',[Mar Rebatable]).
    There is a quick way to check this.
    Create a new measure Mar Rebatable using SUMX = Sumx('Sales History',[Mar Rebatable])
    Then compare Mar Rebatable with  Mar Rebatable using SUMX.

     

    Consider resolving the problem with

    Mar Rebate = Sum('Brand Partners'[Rebate %]) *[Mar Rebatable])/100