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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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