Forum Discussion

RJ_KON's avatar
RJ_KON
Helper I
4 years ago
Solved

Matrix table showing wrong grand total values

Hi, I am struggling to fix this problem in correcting my matrix table grand total values. Below is the DAX measure I am using and it is linked using three tables.   Variableincome = sumx(VALUES('Sa...
  • v-kkf-msft's avatar
    4 years ago

    Hi RJ_KON ,

     

    It is difficult to determine the context of the measure without example data. Perhaps you could try the generic formula for calculating the total value.

     

    SumSales =
    CALCULATE (
        SUM ( 'IRG Cre Data'[Sales Income] ) * ( 'IRG Cre Data'[Scaling Factor] ),
        'CS Income Node '[Income Group Node 6] IN { "Cheque", "Deposits" }
    )
    TotalSales =
    IF (
        ISFILTERED ( 'Sales Income Node '[Income Group Node 6] ),
        [SumSales],
        SUMX ( ALLSELECTED ( 'Sales Income Node '[Income Group Node 6] ), [SumSales] )
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.