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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
morz3d
Advocate I
Advocate I

Custom dynamic RLS problem

Hi all,

 

I have specific problem i wanted to solve with RLS

Brief description follows.
Problem:

  • There are 2+ group of users devided into regions (EU, US,...)
  • User from EU region should see data on daily granularity for his region while for other regions it should be able to see monlty aggregates only for completed months, and same alies for users from other regions

 

I tried to solve it like this

I prepare my fact table so it holds both daily and montly granularity while assigning specific security key for each record. Last 2 records collored in orange are actually just aggreagates for specific region for past month (EU: 100+200=300; US: 100+400=500)

 

region  date  amount  security_key
EU2023.02.01  100EU_daily
EU2023.02.15200EU_daily
EU2023.03.1550EU_daily
US2023.02.01100US_daily
US2023.02.15400US_daily
US2023.03.1510US_daily
EU2023.02.28300EU_monthly
US2023.02.28500US_monthly

 

Where my security table is like following, and it gives minimum permission for sertain user/groups:

usersecurity_key
user_eu  EU_daily
user_eu  US_monthly
user_us  US_daily
user_us  EU_monthly

 

For end users this problem is solved and solution works as expected, but the problem is that for BI developers (my user) i always get wrong results (daily and montly are added up) as RLS is ignored for server/workspace admins. 

Any ideas how to solve this problem other way so accurate results are displayed for end users and admins as well?

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @morz3d ,

If you want to apply RLS, please confirm all the users is Viewer role in the workspace.

vbinbinyumsft_0-1680070776101.png

For more details, you can read related document: Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Solution Authors
Top Kudoed Authors