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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sriram_K
Helper I
Helper I

RLS by Brand

Hi All

I have brand and Country columes in Row level sequrity table

Sriram_K_0-1595243098059.png


my requriment is now abc4@gmail.com in brand colume have value as All,now abc4@gmail.com should get access for All brands (Ex:abc4@gmail.comshould get access for 3 brands Bajaj,Vespa&Honda)

 

DAX used to impleament RLS in my dataset
NOT(ISBLANK(LOOKUPVALUE(RLS[Brand],RLS[Brand],[Brand],RLS[Email ],userprincipalname())))
can any one help me on this

Thanks
Sriram.K

1 ACCEPTED SOLUTION

Hello
has the solution for this.

I've created a new columume like New_Column "All." used that column in the Row Level filter.


DAX used as row-level filter
NOT(ISBLANK(LOOKUPVALUE(RLS[Country],RLS[Country],[New_Column],RLS[Email ],userprincipalname())))
||
NOT(ISBLANK(LOOKUPVALUE(RLS[Brand],RLS[Brand],[brand],RLS[Email ],userprincipalname())))


View solution in original post

5 REPLIES 5
v-rzhou-msft
Community Support
Community Support

Hi @Sriram_K 

Could you tell me if your problem has been solved? If it is, kindly share your way or the reference material with us. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table or share me with your pbix file from your onedrive for business.

Best Regards,

Rico Zhou

Hello
has the solution for this.

I've created a new columume like New_Column "All." used that column in the Row Level filter.


DAX used as row-level filter
NOT(ISBLANK(LOOKUPVALUE(RLS[Country],RLS[Country],[New_Column],RLS[Email ],userprincipalname())))
||
NOT(ISBLANK(LOOKUPVALUE(RLS[Brand],RLS[Brand],[brand],RLS[Email ],userprincipalname())))


@Sriram_K
Glad it's working! Please mark the answer as a solution so others can find it easily too and benefit.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

v-rzhou-msft
Community Support
Community Support

Hi @Sriram_K 

If you don't set RLS, the user can see all table Brand values. Please provide me with more details about your table or share your pbix file with me.

And show me your problem and the result you want.

I hope the blogs about RLS can help you, links are as below:

https://docs.microsoft.com/en-us/power-bi/guidance/rls-guidance

https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls

https://community.powerbi.com/t5/Service/RLS-for-default-Value-Show-all/td-p/231465

 

Best Regards,

Rico Zhou

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

AllisonKennedy
Super User
Super User

Sorry, I don't understand your question. Can you provide a bit more detail and what you're tables look like? What's not working? What is your desired result?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.