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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Show different data on different matrix layers

Hi guys, I am trying to build a report where my co-workers can see how much effort was initially estimated for a work item and eventually the amount of hours the spend in total. Moreover it needs to show the different levels of these work items (epics, features, PBI and tasks). Each individual work item knows if they have a parent and which one that is, so I separated each level into a new column. But now I can't show the different efforts on each different layer in a matrix.

 

Can someone help me with this issue?

 

Capture2.PNG

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

You can use a SWITCH with ISINSCOPE to detect the active "layer" and sum from the correct table.

 

Measure = 
SWITCH(
    TRUE(),
    ISINSCOPE(PBI_Workitems[ID]),SUM(PBI_Workitems[Work Effort]),
    ISINSCOPE(Feature_Workitems[ID]),SUM(Feature_Workitems[Work Effort]),
    ISINSCOPE(Epic_Workitems[ID]),SUM(Epic_Workitems[Work Effort])
)

You want to work from the bottom up so start with checking if the most granular level table first.

 

jdbuchanan71_0-1594652930110.png

I have attached my sample file for you to take a look at.

 

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@Anonymous 

You can use a SWITCH with ISINSCOPE to detect the active "layer" and sum from the correct table.

 

Measure = 
SWITCH(
    TRUE(),
    ISINSCOPE(PBI_Workitems[ID]),SUM(PBI_Workitems[Work Effort]),
    ISINSCOPE(Feature_Workitems[ID]),SUM(Feature_Workitems[Work Effort]),
    ISINSCOPE(Epic_Workitems[ID]),SUM(Epic_Workitems[Work Effort])
)

You want to work from the bottom up so start with checking if the most granular level table first.

 

jdbuchanan71_0-1594652930110.png

I have attached my sample file for you to take a look at.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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