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
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
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.