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
krishma
Regular Visitor

Dynamic RLS in power BI

Hi
can someone please help me with below scenario. it will be helpful.
 I have three tables (mentioned below), i want to achieve that if any user login , he or she should be able to see of their account and region only.
If user has access to multiple regions then it should be able to see multiple regions data,
if user has access to multiple accounts then he should be able to see multiple accounts data .
ex: Arun in below scenario , when he login should be able to see data of  GKA : abc , Abott and region will be Europe , NA, USA  LA.
below ill be data arun will be seeing:

GKAUserRegionsales
AbottArunEurope700
AbottArunNA800
AbottArunLA900
AbottArunUSA300
abcArunEurope400
abcArunNA100


Sales data as per accounts:

GKARegionsales
abcNA100
PepLA200
AbottUSA300
abcEurope400
PepNA500
AbottLA1500
AbottEurope700
AbottNA233

 
User and Region details :

UserRegion
Krishma GoyalNA
DavidLA
ArunUSA
AnushaEurope
SenthilNA
ReddyLA
ArunEurope
ArunNA
Arun

LA



User details as per account:

GKAUseremail
abcAnushaAnusha@gmai.com
AbottArunarun@gmai.com
abcArunArun@gmai.com
PepDaviddavid@gmai.com
abcKrishma Goyalkrishma@gmai.com
AbottReddyReddy@gmai.com
PepSenthilSenthil@gmai.com
6 REPLIES 6
Anonymous
Not applicable

Hi @krishma ,

Based on the description, try to add the new email column in the region table. 

vjiewumsft_0-1725268803121.png

Then, try to manage roles and add the dax formula.

vjiewumsft_2-1725268867862.png

vjiewumsft_3-1725268942279.png

You can also view the following document to learn more information.

vjiewumsft_4-1725269164966.png

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Bi-directional relationship guidance - Power BI | Microsoft Learn

 

Best Regards,

Wisdom Wu

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

krishma
Regular Visitor

Please help on this @Greg_Deckler  , @lbendlin , @SamWiseOwl  , @Ritaf1983 , @rajendraongole1 , 
@Thejeswar , @bhanu_gautam ,  @mickey64 

Thejeswar
Super User
Super User

@krishma ,

You can refer to the below link for a simple explanation on Dynamic RLS in Power BI

Dynamic Row Level Security with Power BI Made Simple - RADACAD

 

The Above page speaks about implementing for one column. 

 

In short, the Below should be the relations between the tables.

 

Apply the Userprincipalname() filter on both User and Region details and User details as per account tables.

Then the above two tables to be connected to the sales table such that they filter the sales table

 

Regards,

Hi
Thanks for helping but this loution will not help as i want for particular GKA which all regions persons has access only that the user should be able to see.
if i login as Reddy then he should be able to see:
Abott LA only not any other values

@krishma ,

As per my understanding, the below will work.

Apply the Userprincipalname() filter on both User and Region details and User details as per account tables.

Then the above two tables to be connected to the sales table such that they filter the sales table

Just that you will have to be a little innovative in how the control gets passed from Security table to the other tables

 

Regards,

krishma
Regular Visitor

@Greg_Deckler @lbendlin @SamWiseOwl @amitchandak @rajendraongole1 please help em with above scenario

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.