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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ilse_ScpDt
Helper I
Helper I

Don't show data on all levels of the hierarchy

I want to make a matrix table based on a hierarchy with 4 levels. The columns contain two different measures:

- Hours: this measure can be broken down to the lowest level of the hierarchy

- Hours planned: this measure can only be broken down to the first two levels of the hierarchy

 

Now my table looks like this:

 HoursHours planned
Agreement A2530
     Budget Name A1520
         Article A 20
         Article B 20
         Article C820
         … 20
         Article O720
               Employee A 20
               Employee B720
               Employee C 20

 

For the levels Article and Employee the 20 Planned hours can't be broken down and for every existing Article and Employee the table is showing 20.

 

I would like to not show this 20 for these two levels of the hierarchy, resulting in this:

 HoursHours planned
Agreement A2530
     Budget Name A1520
          Article C8 
          Article O7 
              Employee B7 

 

Because there is no number of Hours plannend for the lowest to levels, only the rows with a value for Hours are shown.

 

Which measure could I use to obtain this result? 

1 ACCEPTED SOLUTION
Ilse_ScpDt
Helper I
Helper I

I figured it out by turning the DAX formula the other way around:

 

measure =
IF(
ISINSCOPE([Agreement]) && ISINSCOPE([Budget Name]) && ISINSCOPE([Article]),
BLANK(),
[Hours Planned]
)

View solution in original post

3 REPLIES 3
Ilse_ScpDt
Helper I
Helper I

I figured it out by turning the DAX formula the other way around:

 

measure =
IF(
ISINSCOPE([Agreement]) && ISINSCOPE([Budget Name]) && ISINSCOPE([Article]),
BLANK(),
[Hours Planned]
)
amitchandak
Super User
Super User

@Ilse_ScpDt ,I think isinscope can help

 

if(isinscope(Table[Agreement]) || isinscope(Table[Budget Name]) , [Hours planned], blank())

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

or

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

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 the quick reply.

 

I already tried ISINSCOPE, but it isn't working. Still the value is shown on every level of the hierarchy.

 

The other options are also not working. They all only work the other way around.

 

So if you only want to show the two lowest levels it is working. But I would like to show the two highest levels. Thing with these DAX formulas is that the lower levels I don't want to show are "in scope" of Agreement and Budget Name.

 

Is there an other solution?

 

 

 

 

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