Forum Discussion

rendalignacio's avatar
8 years ago
Solved

Incorrect matrix row total

Hi,   Can you please help me with this scenario?   The matrix row gives an incorrect average. Please see image:  
  • v-chuncz-msft's avatar
    8 years ago

    rendalignacio,

     

    You may use the following measure.

    Measure =
    IF (
        HASONEFILTER ( Table1[Test] ),
        AVERAGE ( Table1[Value] ),
        AVERAGEX (
            ALLSELECTED ( Table1[Test] ),
            CALCULATE ( AVERAGE ( Table1[Value] ) )
        )
    )