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
mahra-in
Helper II
Helper II

Find the Number of Direct Report & Total Reportees under him

Hi 

 

I need to find out the number of direct reportees & all reportees (both direct & indirect meaning reportees of reportee) if a person is filtered or selcted

 

IDNameManager IDManager Name
730810Ravi  
752875Tancu730810Ravi
738072Krishna730810Ravi
730287Schmidt730810Ravi
755268Daskalaki730810Ravi
751643Ugochukwu Okechukwu730810Ravi
751772Skjønning Andersen730810Ravi
755737Pertho730810Ravi
731083Nielsen730810Ravi
731208Selvaraj730810Ravi
755650Kumar738072Krishna
754081Babuji738072Krishna
739592Rajesh738072Krishna
738880Arun738072Krishna
753018Varun738072Krishna
739093Jagadesh738072Krishna
738738AG Umapathy738880Arun
738948Kalyanaraman738880Arun
739148Kumar738880Arun
755307SOUNDARARAJ738880Arun


Above is my dataset

 

Now if I filter manager Ravi, I should get the count of Direct Reportees as 9 and total reportees as 19 separate cards & also I need the list of direct reportees names to be shown in a table and list of all reportees in another table

 

Similarly if I select Krishna, I should get the count of Direct Reportees as 6 and total reportees as 10 in separate cards & also I need the list of direct reportees names to be shown in a table and list of all reportees in another table

 

Based on filter the results shall apply. Also let me know if I can have another hierarchy table from the dataset

 

Can you please help me to get this result, if possible please attach the pbix file with the sample dataset

 

Regards

Mahes

1 ACCEPTED SOLUTION

This is roughly what I had in mind.

AlexisOlson_0-1632325431022.png

 

 

View solution in original post

5 REPLIES 5
mahra-in
Helper II
Helper II

@AlexisOlson Im nt too good in Power BI.

 

Could you please send me the developed pbix. It will be really helpful on my current role.

 

If not please explain on "a parameter table of all reportees to use as a slicer, and use PATHCONTAINS to check which paths include the slicer selected reportee"

 

Regards

Mahes r

This is roughly what I had in mind.

AlexisOlson_0-1632325431022.png

 

 

@AlexisOlson Fantastic, Can you please attach the pbix

I linked to it.

AlexisOlson
Super User
Super User

Hint: The various PATH functions will likely be useful here. You'll probably want to set up calculated column Path = PATH ( [ID], [Manager ID] ), a parameter table of all reportees to use as a slicer, and use PATHCONTAINS to check which paths include the slicer selected reportee.

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.