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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
v-rzhou-msft
Community Support
Community Support

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 @v-rzhou-msft 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

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.

v-rzhou-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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