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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LP280388
Resolver II
Resolver II

Dax required for RLS to view direct reportees

Hi Team,

 

Please help me with the dax expression for fetching the employee and his direct reports throught RLS

I have table called "employee table" with below columns

empid, name, managerid, supervisorid, ismanager/supervisor?

the last column has 1 if an employee is manager /supervisor and gives 0 when he is not.

 

how do i implement RLS with this

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @LP280388 ,

 

You can use this dax to do the filter:

[empid] in 
CALCULATETABLE (
    VALUES ( 'table'[empid] ),
    FILTER ( 'table', [supervisorid] = USERNAME () && [ismanager/supervisor] = 0 )
)

Result:

vchenwuzmsft_0-1651734287119.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-chenwuz-msft
Community Support
Community Support

Hi @LP280388 ,

 

You can use this dax to do the filter:

[empid] in 
CALCULATETABLE (
    VALUES ( 'table'[empid] ),
    FILTER ( 'table', [supervisorid] = USERNAME () && [ismanager/supervisor] = 0 )
)

Result:

vchenwuzmsft_0-1651734287119.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chenwuz-msft Thank you very much for this. How can I alter this Dax to make sure that the Manager's Manager will be able to see his subordinate's subordinate?

LP280388
Resolver II
Resolver II

Please help me this is bit urgent

@LP280388 did you get the solution . i have a similar issue too where a manager who might not be part of the employee column will be able to see his direct and indirect reportees data.

please help

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.