Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

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

nirmit27_0-1644824199299.png

Nirmit

1 ACCEPTED SOLUTION
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.

1.png

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.

1.png

 

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.

 

View solution in original post

3 REPLIES 3
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
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.

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.

1.png

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.

1.png

 

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.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.