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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

 

Share with Power BI Enthusiasts: 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

 

Share with Power BI Enthusiasts: 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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