Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

switch value depends on rows in matrix

Hi, Here the sample data, I created a matrix that drag the column1, dim1, dim2 to rows, and measure to values, I want the row subtotal not display total of each category, rather show the column1 lev...
  • amitchandak's avatar
    3 years ago

    Anonymous , You can use isinscope in a new measure

     

    Switch( true(),

    isinscope(Table[dim2]), Sum(Table[Value2]) ,

    isinscope(Table[dim1]), Max(Table[Value1]) ,

    isinscope(Table[Col1]), Max(Table[Value1]) )