Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Auto-Filter Values in Matrix in different levels in Hierarchy

Hi,   I have a matrix with a two variables in the rows.  The first level variable is year. The 2nd variable is month but i only want the values to display data for the current year.   For example...
  • v-frfei-msft's avatar
    v-frfei-msft
    7 years ago

    Hi Anonymous ,

     

    To create a meausre as below.

     

    Measure = 
    VAR sum1 =
        CALCULATE ( SUM ( Table1[Confirmations] ) )
    VAR filtersum =
        CALCULATE (
            SUM ( Table1[Confirmations] ),
            FILTER ( Table1, Table1[PIT_IND] = "TY" )
        )
    RETURN
        IF ( ISINSCOPE ( Table1[Region] ), filtersum, sum1 )