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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

contribution to whole filtering problem

I have a puzzle that I'm struggling to categorize properly in data modeling terms, as I'm hoping with the right terms, I'll find the right solution.

 

In the simplified diagram below, my tabular model Fact WIP has one row per time entry for each employee that captures the work they do for a client. It's easy to show measures like total Billable Hours per client, or total billable hours per employee, or even a breakdown like :

 

Fiscal Period 2020-01

AdventureWorks Inc: 23 hrs

  • Lana: 12 hrs
  • Jamil: 5 hrs
  • Maura: 6 hrs

However, I need to create a way that Maura's manager can show a report of all the clients that she worked on in a given period PLUS the way her contribution compares to the whole, ideally broken out by the skill levels involved (think senior, junior, intern, etc.). Maura's manager is going to want a simple way to filter to Maura and get totals for her, but also totals for work done by others for the same client & fiscal period.

 

This doesn't seem like a "bridge table" problem, as the grain of the transactions allows me to represent 1 record per employee already. However, filtering Maura's clients while still getting the contributions of other employees for those clients is giving me pause. Do I need a separate factless fact establishing the list of all Maura's clients for a period that is separate from the total hours of work done for all clients?

Thanks in advance for your help!

 

Generic Overview.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks! The solution ended up being a variation on this, though I will also take a look at the suggested solution re: average across all to see if that could help as well. https://www.youtube.com/watch?v=IfC7gBfod50&feature=youtu.be

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous  - You can find the average hours for all of the employees for whatever filters are in context (and specify skill level based on selected employee's skill level) with the following Measure:

Billable Hours (Average) = 
var _skill = MAX(Employee[Skill Level])
return CALCULATE(
    AVERAGE(WIP[Billable Hours]),
    ALL(Employees[Employee Name]),
    Employee[Skill Level] = _skill
)
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson
Anonymous
Not applicable

Thanks! The solution ended up being a variation on this, though I will also take a look at the suggested solution re: average across all to see if that could help as well. https://www.youtube.com/watch?v=IfC7gBfod50&feature=youtu.be

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.