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

RLS - Multiple Roles - Filtering to show data only common in roles

 Hi,

 

This topic might be old but I can't find any proper solution. 
I am trying to create multiple roles to filter the data but I would like to see only the common data when an user added to more than one role ie RLS will give you results from both roles, but I like to get only the intersecting results after applying both roles.
Example:  Role 1 :  Region Europe 
                Role 2 :  Region Asia
                Role 3 :  Region Africa
                Role 4 : Country France

If I add a person to  Role 1 : they will have access to all Europe countries data ,thats fine but if I also add that same user to Role 4 : I expect to see only Frace data instead of showing whole Europe, kindly advise how to achive this.

Is it possile to refer a role inside a role, something  like  [Region] = "EUROPE" and [County] in ( Role 4)

Many thank 

Kind Regards
Selva

                         

4 REPLIES 4
v-yetao1-msft
Community Support
Community Support

Hi @Selva_ABZ 

Please correct me if I wrongly understood your question.

You can create a relationship between two tables .

For example ,I have two tables ,one is the data from Region Europe and the other one is related with account .

Ailsa-msft_0-1621331141496.png

Set the role for the table with the account, and then create a relationship between the country in the two tables, so that when you view as role, you will filter the data that can be displayed in the other table through the relationship .Like this

Ailsa-msft_1-1621331141499.png

Ailsa-msft_2-1621331141499.png

Ailsa-msft_3-1621331141501.png

Best Regards

Community Support Team _ Ailsa Tao

 

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

Hi,

 

Apologies for not giving a proper example, that is just an example I tried but I have 50 + roles to add,
so I have something like below

Selva_ABZ_0-1621333163454.png


 Role for Ops will bring both US and UK countries similarly role for UK will return Ops, Finance and Marketing Departments. 
so If I add an user to Role = UK and Role = Ops, I like to see only data realted to UK - Ops but this will bring all data because UK role will bring all departments and Ops Department role will bring both UK and US countries. 
Is there any way to make it to show only juts UK- Ops data ?

This is just an example scenario to explain my question. 

amitchandak
Super User
Super User

@Selva_ABZ , In this case, I do not see a need give add role1, any reason for that ?

Hi Amit,
I've just gave that as an example to explain the scenario but my report data is totally different required to have 50 + roles.

Thanks

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.