Forum Discussion

rvcedd's avatar
rvcedd
Helper I
7 years ago
Solved

Matrix: Display only total for specified values

Hello there,

 

I would like to create a Matrix with 1 row, 3 columns (Date hierarchy) and 2 values. One of the values should be broken down by each column and one of the values should only display the total across all columns.

 

In the example attached, I would like to only display "Count of butterflies" in the Total column. The "Count of butterflies" from 2018 and 2019 columns should dissapear. 

 

Is this possible?

 

Dashboard here: here

 

 

4 Replies

  • v-cherch-msft's avatar
    v-cherch-msft
    Microsoft Employee

    Hi rvcedd 

    You may try to create a measure to replace "Count of butterflies"

    Measure = 
    IF (
        ISFILTERED ( Sheet1[Date].[Year] ) || ISFILTERED ( Sheet1[Date].[Month] )
            || ISFILTERED ( Sheet1[Date].[Day] ),
        BLANK (),
        CALCULATE ( COUNT ( Sheet1[Butterflies] ), ALL ( Sheet1[Date] ) )
    )
    

    Regards,

    • rvcedd's avatar
      rvcedd
      Helper I

      Hello,


      Thanks for your reply.  This solution doesn't solve the problem as the new created Measure still appears as a separate column in the table (it is empty but it still there). Is there any other solution?


      Thanks,

       

      Robert