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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shashankp1
Frequent Visitor

Row level security based on fields from multiple tables

Hi ,

 

I wanted to apply row level security on fields from multiple tables as like below.

 

Employee[Dept]="Sales" and Location[City]="Paris"

 

Problem is that I can apply dax expression on single table only in power BI desktop.May I know how to create role based on fields from multiple tables.

 

Thanks,

1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@shashankp1 

 

Under single role, you can apply filter conditions for multiple tables, one by one.

Example click Employee table and apply the filter condition. [Dept]="Sales"

Then click Location table and apply the next filter condition. [City]="Paris"



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂

 


Regards,
Nandu Krishna

View solution in original post

5 REPLIES 5

Thanks Amit for providing links ,all are useful.Thanks.

nandukrishnavs
Super User
Super User

@shashankp1 

 

Under single role, you can apply filter conditions for multiple tables, one by one.

Example click Employee table and apply the filter condition. [Dept]="Sales"

Then click Location table and apply the next filter condition. [City]="Paris"



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂

 


Regards,
Nandu Krishna

Thanks for the quick reply.

 

So this will create AND condition right.just for my info,what if I want to create "OR" condition.So any different approach.Once again Thanks.

To create an "OR" condition I did by creating 2 different roles. In this case one role for

Employee table and apply the filter condition. [Dept]="Sales"

another role for Location table and apply the next filter condition. [City]="Paris"

 

An then asign the desired member to the 2 roles, so this member will see all "Sales" and all "Paris"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.