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

RLS with multiple filters and values

Hello, 

We've created a data model in PBI with multiple fact tables linked with dimension tables.
We've a web application in which we can define permissions for a user to see data of one or several projects and 1 or several team members.
In our data model team members and project correspond to differents dimension tables.

 

We know how RLS works for one user to see one project or one team member 's data with static value.

We would like to know how to proceed to define RLS with multiple dynamic values in the two filters (project and team members).

For information the dynamic values are stored in a database by the web application.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ybam , As long as you can create a table with email id and project which user can access you can filter.

 

Create a table like

Project Id ,email

 

This can have m-m join with project table

 

You can have another table

 

Team - email Id

 

This can have M-M join with Employee/team /person table

 

Make sure it filters the dimension

 

in RLS you just need filter email of these table

 

[email_id] = userprinicpalname()

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @Ybam ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!

 

Community Support Team _ Caitlyn

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

amitchandak
Super User
Super User

@Ybam , As long as you can create a table with email id and project which user can access you can filter.

 

Create a table like

Project Id ,email

 

This can have m-m join with project table

 

You can have another table

 

Team - email Id

 

This can have M-M join with Employee/team /person table

 

Make sure it filters the dimension

 

in RLS you just need filter email of these table

 

[email_id] = userprinicpalname()

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

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.