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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.