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
medonication
Helper I
Helper I

Row Level Security Multidimentional Access

Hello Everybody,

 

I want to talk with you about the best way to built a security concept based on mutiple dimensions.
e. g. we have a list of users which should only see data based on their country/region, their product line and their vehicle line.
If we define a user to see for example only EU as a region and light vehicle as a vehicle line but a * in the product (Mean he can see all the product in EU only for Light Vehicles)
I used a code to do that but it looks too overwhelming and hard to update.
I believe there is a better and performanter way to handle my problem.
Thank you for your ideas!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @medonication,

Perhaps you can create a mapping table of username and corresponding region, then link this to the country/region table based on the country/region field.
After these steps, you can use the username to lookup the country/region and extract this to apply 'RLS filter' on the country/region table to filter records.

Solved: RLS with UserName() - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @medonication,

Perhaps you can create a mapping table of username and corresponding region, then link this to the country/region table based on the country/region field.
After these steps, you can use the username to lookup the country/region and extract this to apply 'RLS filter' on the country/region table to filter records.

Solved: RLS with UserName() - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

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.