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! Learn more

Reply
D_G
Frequent Visitor

Optimal Data model with RLS

I have data model with multiple dimensions and two Fact tables

D_G_0-1729584951201.png

 

I want to set up Role level secturity on Company dimension and also Limit item and Customer list so that company user would see only Items and Customers which are relevant for them. Items and customers can be local and global:

D_G_1-1729585140655.png

In data model we have more than 100 K items, around 50 K customers and 20 mio transaction lines. 

What would be best option to apply RLS in this case?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All,
Firstly  sanalytics  thank you for your solution!
And @D_G ,Because Items and Customers are associated with specific companies, applying RLS filters to the COMPANYID in the Company table propagates to those tables, automatically limiting the visible Items and customers to items and customers associated with the user's company.

We have divided the RLS into two categories, one that restricts a certain type of company to see only its own projects and amounts, and another that is similar to a global administrator that can see any data

vxingshenmsft_10-1729665897436.png

 

vxingshenmsft_9-1729665823046.png

 

 

vxingshenmsft_6-1729663173229.png

vxingshenmsft_11-1729665972121.png

 

 

vxingshenmsft_12-1729666021843.png

Then publish it to our service for testing and you can see that we are able to filter by company.

vxingshenmsft_14-1729666310648.png

 

vxingshenmsft_13-1729666279028.png

If you have more recent questions you can check out my pbix file that was created 1 to 1 based on your relationship view, hope that helps!

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

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

3 REPLIES 3
Anonymous
Not applicable

Hi All,
Firstly  sanalytics  thank you for your solution!
And @D_G ,Because Items and Customers are associated with specific companies, applying RLS filters to the COMPANYID in the Company table propagates to those tables, automatically limiting the visible Items and customers to items and customers associated with the user's company.

We have divided the RLS into two categories, one that restricts a certain type of company to see only its own projects and amounts, and another that is similar to a global administrator that can see any data

vxingshenmsft_10-1729665897436.png

 

vxingshenmsft_9-1729665823046.png

 

 

vxingshenmsft_6-1729663173229.png

vxingshenmsft_11-1729665972121.png

 

 

vxingshenmsft_12-1729666021843.png

Then publish it to our service for testing and you can see that we are able to filter by company.

vxingshenmsft_14-1729666310648.png

 

vxingshenmsft_13-1729666279028.png

If you have more recent questions you can check out my pbix file that was created 1 to 1 based on your relationship view, hope that helps!

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

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

 

 

 

 

 

 

 

 

D_G
Frequent Visitor

thanks. this was exactly what I was looking for

sanalytics
Super User
Super User

Hello @D_G 

The best approach should be to apply the dynamic row level security in your case.

1)Use dynamic RLS based on the company dimension.
2)Apply filter propagation from the company to the items and customers, ensuring that users only access the relevant data.

 

There are tons of material avialable regarding dynamic rls in google and youtube. please go though this.

 

Regards,

sanalytics

If it is your solution then please like and accept it as solution

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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