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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

ISINSCOPE issue in matrix

Hello,

 

I have one very simple measure that I have followed in other posts. With this measure, I want to remove the count for the 2nd hierarchy. I would like to count the number of related case for a parent case and show this only on the first hierarchy, which is the parent case. Currently, the measure only eliminates the total. I've read other posts and possible solution but nothing is working, not quite sure why. Thanks in advance. 

 

LeaMM_1-1653613266888.png       LeaMM_0-1653613237932.png

 

Data:  LeaMM_4-1653613593958.png

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

please use

Related Case =
IF (
    NOT ISINSCOPE ( Query1[Related Case Number] ),
    COUNT ( Query1[Parent Case Number] )
)

View solution in original post

4 REPLIES 4
ribisht17
Super User
Super User

@Anonymous 

 

Regional Countries Count Sol =
if( ISINSCOPE(Orders[Country])=FALSE(),DISTINCTCOUNT(Orders[Country]),BLANK())
 
LOGIC
>>
ribisht17_1-1653629536557.png

 

 
ribisht17_0-1653629320429.png

 

Please take care of the hierarchy you are using in the calculation because [Parent Case Number] will be true in both the cases

 

 
 
Anonymous
Not applicable

Thank you for your response ribisht17. Unfortunately it didn't work. When the ISINSCOPE() is false, it shows only the total and blank for both the parent and related case. 

tamerj1
Super User
Super User

Hi @Anonymous 

please use

Related Case =
IF (
    NOT ISINSCOPE ( Query1[Related Case Number] ),
    COUNT ( Query1[Parent Case Number] )
)
Anonymous
Not applicable

This works perfectly. Thanks a lot tamerj1!

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.