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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Filter data based on Manager - Employee relationship

I have an organizational chart that looks somewhat like this:

 

OrgChart.png

The data is in a table like below:

 

EMPLOYEE,MANAGER
Nicole,
Jim,Nicole
Dana,Nicole
William,Jim
Maria,Jim
Kate,Jim
Jane,Dana
John,Dana
Stewart,Kate
Scott,John
Osha,John

 

Then I have a second table that tracks some data for each employee. Suppose it's some task completion data.

 

EMPLOYEE,TASKS,COMPLETED
Nicole,12,8
Jim,10,5
Dana,8,8
William,13,11
Maria,15,13
Kate,4,4
Jane,16,12
John,3,3
Stewart,6,5
Scott,23,21
Osha,9,3

 

Based on this data I calculate a completion %.

 

Table1.png

 

So far, all good. But I'd like to be able to have a slicer and filter by manager, and when it does, I'd like to show data for all employees that directly report to that manager as well as those who report to managers under him/her. For instance, from above data if I select Dana, I'd like to show data for all four Jane, John, Scott, and Osha. But as it is if I select Dana it only shows data for employees directly report to her.

 

Table2.png

How do I set the relationships to display what I want. I don't have control over how the data source is organized, so all I do will have to be from within PowerBI.

 

6 REPLIES 6
EmiljoJ
New Member

Did you get a solution to this one?

Saniat
Helper V
Helper V

It's a nice question, and I am looking for a similar soln to my problem.

S_JB
Resolver III
Resolver III

A potential solution could be to add a new column using the LOOKUPVALUE function, see an example below:

Manager II = IF(LOOKUPVALUE('Hierarchy'[Manager],'Hierarchy'[Employee],'Hierarchy'[Manager])="Nicole",
'Hierarchy'[Manager],
LOOKUPVALUE('Hierarchy'[Manager],'Hierarchy'[Employee],'Hierarchy'[Manager]))


Also, the below article provides more information on the lookupvalue function if you want to make any changes to the logic:

 

https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax

Anonymous
Not applicable

This works, but only for the very specific example I asked. For instance it only basically shows for second level managers reporting to Nicole, but if I select Nicole it'll only show data for Jim and Dana. 

 

Organization structure can often change, and there can be managers added or removed chaning the 'level' etc. I wonder if there's a more general solution.

Need solution facing exact same issue.

Did you get a solution to this one ?

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.