Forum Discussion

tonyclifton's avatar
tonyclifton
Icon for Helper III rankHelper III
5 years ago
Solved

Matrix Visual: creating custom Subtotal row

Hello community,

 

I am looking for a solution based on below screenshot. Is it possible to create a subtotal row only for "KPI_A" for each region with the given table structure?

 

Source:

RegionCompanyKPIValue
ACompAKPI_A1
ACompAKPI_B2
ACompBKPI_A11
ACompBKPI_B12
ACompCKPI_A21


Thank you.

3 Replies

    • tonyclifton's avatar
      tonyclifton
      Icon for Helper III rankHelper III

      Thanks for the example PaulDBrown. I will have to take a closer look at this.

      In the meantime I managed to create a KPI that sums up "KPI A" so that I can show the correct value in the matrix.

      However, the grand total value is now wrong (obviously).

      Is there a way with DAX to show all the values but exclude some row values for the calculation of the total value?

      If I just use the Calculate function with filter option and exclude the KPI "Total KPI A" it will create the correct grand total but it will also not display the amount for that row.

      Thank you.

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity Champion

    I would imagine you are going to need a SUMX() or SUMX(SUMMARIZE( )) to get the correct total