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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

drill down hierarchy and INSCOPE

I have plotted a bubble map with following hieracy 

ZeeshanSantos_0-1625639818106.png

Now I want when a user drill down (using drill mode) a target value is changed. In this regard I created a measure : 

TT =
SWITCH(
TRUE(),
ISINSCOPE (Database[Area]),1 ,
ISINSCOPE (Database[Well Name]),2,
3
)
 
I was expecting that when a user enter the next level in the hierarcy ( area in this case), the value should be 1 and when a user drilled down to further down in the hierarcy ( well name), the value is 2 however when I plotted the values in the table  it is not showing me any thing it means that ISINSCOPE is not detecting new filter context of hierercy change. Can anyomne please help me 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi there

 

I end up using HASONEVALUE() measure becasue I cant use ISFILTERED as I want to use 3 levels drill down hierarcy so I can use the last measure as ISFILTERED but the middle one can use HASONEVALUE

View solution in original post

5 REPLIES 5
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Have you solved your problem? If yes, kindly accept the answer helpful as the solution(Or kindly share your solution 😁). so the others can find it more quickly.

Or

if problem still persists, please let me know.

 

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi there

 

I end up using HASONEVALUE() measure becasue I cant use ISFILTERED as I want to use 3 levels drill down hierarcy so I can use the last measure as ISFILTERED but the middle one can use HASONEVALUE

v-xiaotang
Community Support
Community Support

Hi @Anonymous 

you can use function ISFILTERED(),

 

TT = 
SWITCH(
TRUE(),
ISFILTERED('Table'[State]),1 ,
ISFILTERED ('Table'[City]),2,
3
)

 

but you need to put measure into the same visual.  if you want to put the measure into another visual, you need to click on the first visual to transfer context.

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , I doubt when drill down the above member is still is in scope.

Change the order and try

 

TT =
SWITCH(
TRUE(),

ISINSCOPE (Database[Well Name]),2,
ISINSCOPE (Database[Area]),1 ,
3
)

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
Anonymous
Not applicable

Nopes still didnt worked . It displays 3 value only as you can see the output shown in the screenshot of the table output below. This means it is not detecting any change in the hierarcy.  

ZeeshanSantos_0-1625699251342.png

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors