Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Total Sum in matrix

Hi all,   I have a matrix where I calculate a value for each cell, and I need the total to be the sum of the values shown on the matrix.    This is the measure that is being used in the matrix:  ...
  • tamerj1's avatar
    tamerj1
    3 years ago

    Anonymous 

    Sorry I missed to wrap MEDIAN with CALCULATE 

     

    Oportunidade =
    SUMX (
    CROSSJOIN ( VALUES ( 'De para filial'[ESTADO] ), VALUES( 'Reajuste coletivo'[Faixa de vidas]) ),
    [Delta KPI]
    * CALCULATE (
    SUMX ( 'Reajuste coletivo', 'Reajuste coletivo'[VL_OBRIGACAO_MES_CONTRATO] ),
    'Reajuste coletivo'[DT_REFERENCIA] = "2023"
    )
    * CALCULATE ( MEDIAN ( 'Reajuste coletivo'[REAJUSTE] ) ) * 12 / 100
    )