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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Hermarian
Regular Visitor

How to hide subtotal for particular value for column

Hello, I am trying to hide the subtotal for the FY2019 values - as it is a repeat of itself, but I still need a subtotal for FY2020.

Note - I need to keep FY2019 as a one column value, but FY2020 needs to be split into Quarters which I achieved with an IF.

Thanks

Hermarian_0-1711391878463.png

 

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @Hermarian ,

Based on my testing, it is impossible to hide subtotal for particular total value.

Please try the following methods as workaround:

1.Create the sample table.

vjiewumsft_0-1711614371214.png

2.Select the column subtotals. Turn on Per column level and select column level. Turn off the show subtotals.

vjiewumsft_1-1711614384874.png

3.The result is shown below.

vjiewumsft_2-1711614392297.png

Besides, you can also create the measure to filter.

 

total = 
VAR SAL_ = SUMX(FILTER(ALLSELECTED('Table'),[Year] = MAX('Table'[Year]) && [Region] = MAX('Table'[Region])), [Sales Amount])
VAR SELE = SELECTEDVALUE('Table'[Year])
RETURN
IF(SELE = "FY2020", SAL_, BLANK())

 

Turn off the column subtotals and drag the measure into the Values.

vjiewumsft_3-1711614431978.png

You can also raise a new idea and add the comments there to make the drill through feature that maintain the previously selected row coming sooner.

Home (microsoft.com)

 

Best Regards,

Wisdom Wu

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

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @Hermarian ,

Based on my testing, it is impossible to hide subtotal for particular total value.

Please try the following methods as workaround:

1.Create the sample table.

vjiewumsft_0-1711614371214.png

2.Select the column subtotals. Turn on Per column level and select column level. Turn off the show subtotals.

vjiewumsft_1-1711614384874.png

3.The result is shown below.

vjiewumsft_2-1711614392297.png

Besides, you can also create the measure to filter.

 

total = 
VAR SAL_ = SUMX(FILTER(ALLSELECTED('Table'),[Year] = MAX('Table'[Year]) && [Region] = MAX('Table'[Region])), [Sales Amount])
VAR SELE = SELECTEDVALUE('Table'[Year])
RETURN
IF(SELE = "FY2020", SAL_, BLANK())

 

Turn off the column subtotals and drag the measure into the Values.

vjiewumsft_3-1711614431978.png

You can also raise a new idea and add the comments there to make the drill through feature that maintain the previously selected row coming sooner.

Home (microsoft.com)

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Greg_Deckler
Super User
Super User

@Hermarian Not sure what your measure is but you may be able to achieve this by using HASONEVALUE and MAX of year and if the right criteria, return BLANK. Hard to be more specific with the information provided. Or, turn on word wrap and shrink the Total column until it disappears.

 

First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.