Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Hide Subtotal row completely when only one row in values

Hi, Is there a way to hide the subtotal row completely, when there is only one row in values? See example below. Thanks Nirmit
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    According to your statement, I know you want to keep subtotal in Component2 and hide subtotals in other Component. I think all subtotals in your screenshot are in same hierachy level(). You can turn off hierachy level subtotal in Per row level in Subtotal in visual Format.

    You couldn't only hide or show one subtotal in same hierachy level.

    Here I suggest you to create a measure to let subtotal in other component show blank.

    Measure = 
    IF(MAX('Table'[Component#])=2,SUM('Table'[VALUE]),IF(ISINSCOPE('Table'[SubName]), SUM('Table'[VALUE])))

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.