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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
MOUNICA_BV
Frequent Visitor

Manager to employee filtering using slicer

Hi,

I have come across a requirement where 

I have table with empid,empname,managerid
So in report I will show 3 columns in a table and a slicer based on empid.
Now when I select one empid, the respective row will be shown in table but when I choose an empid who is also a manager then all employees under him also should be shown in the table.some employees are top-level,they don't have a manager.
 
Please let me know how to implement this. 
 
sample data
Empid  Empname Managerid
100       Abc
101       XYZ              100
102       MMM           100
104       DDD            106
105       EEE              106
106       KKK 




1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

Easy enough,

ThxAlot_1-1737888297054.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @MOUNICA_BV - Please check the attached pbix file. 

also please check the solution provided by @ThxAlot 

Thank you

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@rajendraongole1 I have checked ur pbix file.Its not filtering correctly for manager.Anyways I figured out the solution.Thanks

ThxAlot
Super User
Super User

Easy enough,

ThxAlot_1-1737888297054.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Kudoed Authors