Forum Discussion

Paramjit's avatar
Paramjit
Helper II
5 years ago
Solved

Custom Row total in Matrix

Hi Team,

SivaMani amitchandak 

 

I have the data in below form.

 

I need to customize the total for attribute C.

 

C total should be total of A + total of B = 130

 

Could you please assit.

 

.

  • Hi, Paramjit ;

    You could create a measure .

    Measure = 
    VAR _total=CALCULATE(SUM([Value]),ALLEXCEPT('Table','Table'[Attribute]))
    VAR _Cctotal=CALCULATE(SUM([Value]),FILTER(ALL('Table'),[Attribute] <"C"))
    RETURN IF(ISINSCOPE('Table'[MONTH]),SUM([Value]),IF(MAX([Attribute])="C",_Cctotal,_total))

    The final output is shown below:

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies