Forum Discussion

crln-blue's avatar
crln-blue
Post Patron
2 years ago
Solved

Custom matrix row subtotal

Hello!    I have a matrix table with the following display: My matrix table is pretty straightforward since I already adjusted the calculations. I turned off the subtotals option since I don...
  • danextian's avatar
    2 years ago

    Hi crln-blue ,

     

    Try this:

    Formula =
    IF (
        NOT ( HASONEVALUE ( 'Table'[Category] ) ),
        CALCULATE (
            SUM ( 'Table'[Value] ),
            'Table'[Category] = "Average of All Category"
        ),
        SUM ( 'Table'[Value] )
    )