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
tracytran91
Helper III
Helper III

Row Level Security with multi roles

Hi friend, 

 

Could anyone please kindly help me to set RLS for this user?

He is in charge of Thailand region which allows him able to see all products sold in ThaiLand. Meantime, He has additional role in charge of Product Candy which allows him to see performance of candy at all region. 

 

tracytran91_0-1633947817068.png

Any help is high appreciated. 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @tracytran91 

try this 

 

vxiaotang_0-1634287645000.png

result

vxiaotang_2-1634287732399.pngvxiaotang_1-1634287715053.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, 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-xiaotang
Community Support
Community Support

Hi @tracytran91 

try this 

 

vxiaotang_0-1634287645000.png

result

vxiaotang_2-1634287732399.pngvxiaotang_1-1634287715053.png

 

 

Best Regards,

Community Support Team _Tang

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

@v-xiaotang Thank for your solution. 

 

I would like to ask whether there is a dynamic way to make it work? 

amitchandak
Super User
Super User

@tracytran91 , You can not use all. This what I have done. I create a table like this

 

Product Product All
A A
B B
C C
D D
A All
B All
C All
D All

 

I joined it product column and merged in power query(on product All)  and removed all and got the products

The same need to be done for the region

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.