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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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