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.

     

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous thanks for the idea. This alernative did cross my mind to be the closest possibility. Looks like currently its not possible to completely hide the Subtotal row when there is only one row with value for the given level. Would keep it open for some more time for any other possibilities.

     

    Thanks

    Nirmit

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous ,

       

      As far as I know, Power BI doesn't support us to hide values in same level. Currently, measure should be the best workaround. You can let the subtotal you want to hide to show blank.

      Could you tell me if your problem has been solved? If it is, kindly Accept the helpful reply as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem.

       

      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.