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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
possible-possum
Frequent Visitor

How to never show a value at the top level of a matrix

Hi,

 

I have a Matrix with Project Number nested under Company Name in the rows. The matrix is looking at project profitabilty and overall company profitabilty - we want to see profit by company and have the abilty to drill down by project.

 

My issue is some clutter with some of the values at the top level. Most companies have 2-8 projects, but some only have 1. I want to hide all of the unsummerised project data (project name, project manager) at the top level of the matrix. Using SELECTEDVALUE() doesn't quite work as in some of the cases, even at the top level there is only one value (as there is only one project) so I end up with a mess of some blank and some populated rows.

 

Does anyone have a solution for this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@possible-possum , Try using isinscope -https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

IsInScope - Switch measure at different levels: https://youtu.be/kh0gezKICEM

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@possible-possum , Try using isinscope -https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

IsInScope - Switch measure at different levels: https://youtu.be/kh0gezKICEM

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for pointing me in the direction of ISINSCOPE, it ended up being quite simple to implement:

Screenshot 2022-10-10 103302.png

Producer =

IF(
    ISINSCOPE(
        'Projects'[Project ID & Name]),
        SELECTEDVALUE('Projects'[Producer Name])
)
 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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