Forum Discussion

gksdude9192's avatar
gksdude9192
Frequent Visitor
2 years ago
Solved

Custom Total for Matrix Visual

Is there a way to show the Total 5 instead of 7 ?  
  • gksdude9192's avatar
    2 years ago

    By using Hasonevalue i got the solution.

    Measure = 
    var _all = SUM(Table[Value])
    var _filtered = CALCULATE(SUM(Table[Value]), NOT Table[Category] IN {"F","G"})

    RETURN
                IF(HASONEVALUE(Table[Category]),_all,_filtered)