Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Exclude particular row in total

Hi,   I am trying to show a table where in a Matrix, the total excludes Year1, where my Total would be 4400 instead of 4900 and yet Year1 data is still there. I used this measure, but it removed t...
  • Zubair_Muhammad's avatar
    7 years ago

    Hi Anonymous 

     

    Try this measure

     

    Spoiler
    Measure =
    IF (
        HASONEFILTER ( 'Table'[Year] ),
        SUM ( 'Table'[Amount] ),
        SUMX (
            FILTER ( VALUES ( Table[Year] ), 'Table'[Year] <> "Year1" ),
            CALCULATE ( SUM ( 'Table'[Amount] ) )
        )
    )