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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Dynamic RLS

Hello,

 

I need to implement Dynamic RLS.

I have two tables in my report like this 

User table and Reporting table. User table have fields like BU, Usename anf other userinformation. Reporting table have fields like BU, date and other reporting information.

 

I have join two table By BU using many to many relationship and cross filter direction-> Both

 

How to implement RLS here. so that specific user of that BU can see the BU level data from reporting table.

 

 

1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi@Anonymous ,

 

You can use Dynamic row level security in Power BI using DAX USERNAME() or UserPrincipalName() function.

However, you need to make sure that your Power BI model has a relationship set up properly. Otherwise, people might see other table’s data when there is no relationship between their profile table to those tables.

Dynamic row level security is highly dependent on your data model, so keep your data model right.

 

For more information,you can refer to this:

Dynamic-row-level-security-with-power-bi-made-simple  

 

You can also follow the tutorial below :Dynamic Row Level Security with Manager Level Access in Power BI 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

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
v-xiaoyan-msft
Community Support
Community Support

Hi@Anonymous ,

 

You can use Dynamic row level security in Power BI using DAX USERNAME() or UserPrincipalName() function.

However, you need to make sure that your Power BI model has a relationship set up properly. Otherwise, people might see other table’s data when there is no relationship between their profile table to those tables.

Dynamic row level security is highly dependent on your data model, so keep your data model right.

 

For more information,you can refer to this:

Dynamic-row-level-security-with-power-bi-made-simple  

 

You can also follow the tutorial below :Dynamic Row Level Security with Manager Level Access in Power BI 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

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

Anonymous
Not applicable

Hello @amitchandak ,

 

I have added simply the Dax on my User Table

[UserName] = UserName()

 

but its not working.

 

I need to filter the data using the specific BU if the person of that BU logins

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.