Forum Discussion

OSS's avatar
OSS
Helper III
7 years ago
Solved

Incorrect Grand total value

Dear all I have a problem with the grand total calculation.    I have uploaded my pbix. I think this way is the easiest way to explain and understand my problem. I need to receive a correct grand ...
  • jdbuchanan71's avatar
    7 years ago

    First question, in 'Cards Mapping' it looks like there is a duplicate value.  Could this be causing some problem?

    • [Full Acc. Def.] 87017AZNBE0700000001 is in there twice with a POS% of 0.253560889064541

     

    For the total calc I would do the following:

     

    First write a couple measures to make the last setp easier

    TotalCardExp = sum( 'Cards YTD'[Total Card Exp] )
    POS%measure = sum( 'Cards Mapping'[POS%] )

    Then you can write a measure that will go through the 'FULL ACC' table and do your calc.

    POSAmount = SUMX ( 'FULL ACC', [TotalCardExp] * [POS%measure] )

     

    The problem you are seeing in your report is that Grand Totals are not the sum of all the numbers above, they are the measure calculated with no filters so it is giving you [Total Card Exp] * [POS%] -6,556,122.88 * 17.79 = -116,631,611.78