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
Boycie92
Resolver I
Resolver I

RLS using Dates

 

Hi

I am hoping someone can help.

 

I am trying to implement row level security. I have a fact table, an employee table and a security table.

 

We have a scenario where we have created multiple reports, but managers are ONLY allowed to see their OWN Teams reports. So, we have created a ‘Landing Page’ with navigation buttons for managers to use. They can still access the reports for other teams but with RLS they can’t see the data.

 

We wanted to test a scenario were one employee has moved from Team A to Team B.  We wanted their previous manager to see all their data BEFORE they transferred and the new manager to see all their data AFTER they transferred.

 

So within the EmployeeTable we created a new row for any employees that transferred.

E.g

FactID                   EmpID                   RowID                   ManagerID         ManagerEmail Team       FromDate            ToDate

10                           70                           1                                              4              A             1/01/2017            31/01/2018

10                           70                           2                                              5              B             1/20/218              null

 

I am using the ManagerEmail = Username() function

 

The problem we are having is that both managers can see everything for that employee, as I can’t get it to focus on specify dates.  

Can anyone help?

 

Thanks in advance,

Boycie92

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Boycie92,

 

Did you enable the option "Apply security filter in both directions" on between your fact table and the date table.

 

2.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

HI @v-frfei-msft,

 

I don't have a date table. I have activated it between my employee table and security table.

 

Thanks,

Boycie92

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors