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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Repjas
Frequent Visitor

Only selected rows in matrix without filtering total

I have a table like below. I want to create a matrix that shows only certain subcategories and segments, because there are way to many. I want to the matrix to also show the total category value.

 

Category   

Subcategory A   Segment 1   100   
CategorySubcategory ASegment 1120
CategorySubcategory ASegment 2200
CategorySubcategory BSegment 2300
CategorySubcategory BSegment 3100

 

Matrix should look like this:

 

Category - 820

   Subcategory A - 420

       Segment 2 - 200

So basically, I just want to 'hide' certain rows. I can't do it using filters, because then the total category does not add up. I also tried with excluding rows in the matrix, but that also affects the highest level. Is there a way to do it?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Repjas Couple options, use the Filters pane to filter out things but construct a measure where you ignore those filters in the Total row. See below. The other way, construct a measure that returns BLANK() if you are not in Category, SubcategoryA or Segment 2

 

See my post 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 MM3TR&R: https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Repjas Couple options, use the Filters pane to filter out things but construct a measure where you ignore those filters in the Total row. See below. The other way, construct a measure that returns BLANK() if you are not in Category, SubcategoryA or Segment 2

 

See my post 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 MM3TR&R: https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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