Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Custom grand total in Matrix

Hello All,

 

I am trying to create a custom grand total in the Matrix visualization but I am not able to achieve it, is there a way to get it.

Below is the  example.

 trans
a10
b20
c30
total12

 

Here I am trying to get sum(trans)/5 in the grand total, but in matrix by default I'm getting 60. Can some please help me on this request.

 

Thanks for all your support.

  • Hi Anonymous ,

     

    You can do like this:

    Measure = 
    IF(
        HASONEVALUE('Table'[Trans]),
        SUM('Table'[Trans]),
        SUM('Table'[Trans])/5
    )

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies