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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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