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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
paw1
Helper I
Helper I

how to hide subtotals for particular measure

Hi,

I have a pivot table with 5 measures. I have to hide subtotal values for only sale %. is there any way to convert sale % sub total value to 0 or completly hide the value.

Sale % = if(FORMAT(SUM(Input[Sales]),"#,##0.00%")="0.00%","-",
FORMAT(SUM(Input[Sales]),"##,###0.00%;(##,###0.00%); -"))

paw1_0-1680003409781.png

Thanks

 

1 ACCEPTED SOLUTION

You can use this pattern to do that.

 

Sale % No subtotals =
IF (
HASONEVALUE ( Table[Company Name] ) || NOT ( ISFILTERED ( Table[Country] ) ),
[Sale %]
)
 
Pat
Microsoft Employee

View solution in original post

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

Yes. You can make a new measure like this that references your existing measure and use it instead.

 

Sale % No subtotals = IF (HASONEVALUE(Table[Company Name]), [Sale %])

 

Pat

Microsoft Employee

Hi @ppm1 Thanks for your help. It's working fine for subtotals but totals also showing blank along with sub totals. Is there any way to hide only subtotal and show total.

You can use this pattern to do that.

 

Sale % No subtotals =
IF (
HASONEVALUE ( Table[Company Name] ) || NOT ( ISFILTERED ( Table[Country] ) ),
[Sale %]
)
 
Pat
Microsoft Employee

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors