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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SanketBhagwat
Solution Sage
Solution Sage

Disable values for specific rows in a matrix

Is there a way I can disable the values for specific rows in a matrix visual?

Lets say I have 4 rows in my matrix and I want to show the value just for the 3rd level.

See attached screenshot.
bomqty is basically a SUM(bomqty) and second column is its Average.

I want to show the value 40,524 just for 'COLLAR, BOBTAIL HUCK, BTC5-R12GAHL PART SHOWN ON ALCOA 10660' this level and return blank for all other rows.

SanketBhagwat_0-1649226293692.png

Thanks,
Sanket

1 ACCEPTED SOLUTION

This should work (see the structure of the rows to follow the flow of the measure):
filter rows.jpg

 

 

Filter matrix rows =
IF (
    ISINSCOPE ( 'DIM Product Ref'[DProduct REF] ),
    BLANK (),
    IF ( ISINSCOPE ( 'DIM Item'[Item] ), [Sum of Sales], BLANK () )
)

 

 

So basically you are writing the IFs from the lowest hierarchy up





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

You ca use the ISINSCOPE function. Something along the lines of (Let's say the level you wish to display is Table[display]):

Show = IF(ISINSCOPE(Table[display]), [your measure])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown Thanks for the solution. It helped me for the above test but need to hide the lower level too.

SanketBhagwat_1-1649229167116.png

 

This should work (see the structure of the rows to follow the flow of the measure):
filter rows.jpg

 

 

Filter matrix rows =
IF (
    ISINSCOPE ( 'DIM Product Ref'[DProduct REF] ),
    BLANK (),
    IF ( ISINSCOPE ( 'DIM Item'[Item] ), [Sum of Sales], BLANK () )
)

 

 

So basically you are writing the IFs from the lowest hierarchy up





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.