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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Pikachu-Power
Impactful Individual
Impactful Individual

Hide row in Matrix without affecting total

Hello,

 

thought it is easy but didnt work 🙂

 

I want to hide some values without affecting the total.

 

In detail: Hide BA, BB, BC but keep the Total 36 and 42:

 

1.PNG

 

The Measure is something like CALCULATE ( SUM ( ) ... , LASTDATE ( ) ). 

 

I tried some DAX with ISINSCOPE but didnt work.

 

Thanks.

 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Pikachu-Power ,

 

you can check if column 2 is in scope with the ISINSCOPE function and return BLANK in that case and otherwise your measure.

The following approach should work, just replace the SUM at the end with your measure:

Measure No Details = 
IF (
    ISINSCOPE ( myTable[Col2] ) && MAX ( myTable[Col1] ) = "B",
    BLANK (),
    SUM ( myTable[Measure] )
)

 

Then the measure will give according results:

selimovd_0-1652966785334.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @Pikachu-Power ,

 

you can check if column 2 is in scope with the ISINSCOPE function and return BLANK in that case and otherwise your measure.

The following approach should work, just replace the SUM at the end with your measure:

Measure No Details = 
IF (
    ISINSCOPE ( myTable[Col2] ) && MAX ( myTable[Col1] ) = "B",
    BLANK (),
    SUM ( myTable[Measure] )
)

 

Then the measure will give according results:

selimovd_0-1652966785334.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (350)