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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mimitan
Regular Visitor

Need help on RLS - manage roles, multiple values from one column

Hi, 

 

I would like to set up RLS with multiple values in the table filter, I tried this but it would not work:

[Column] = "Value1" && [Column] = "Value2"

 

Please help. thank you.

 

mimitan_0-1603958961990.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@mimitan When you are trying to give logical operators in RLS filters AND,OR does not work you will have to make use of IN keyword
eg:[Salescountry] IN  {IN,CN,PH}
[Salescountry] ="CN" ||  [Salescountry] ="PH"

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍






View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

You can check this video, which clearly explains how to solve this issue.

I hope I can help.

Best regards

mimitan
Regular Visitor

Hi everyone,

 

thank you for alll your inputs. My aim was to have 1 role with 2 filtered values. 

The quick solution I got was to just separate roles and add one person to both roles so he can access two RLS.

 

Is it possible to have 1 role with 2 filters? for example column is countries, 1 roles for 2 countries?

Anonymous
Not applicable

@mimitan  Yes it is possible you can make use of my example
[Salescountry] IN  {IN,CN}-->Change IN & CN according to your data

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍

 

Anonymous
Not applicable

@mimitan When you are trying to give logical operators in RLS filters AND,OR does not work you will have to make use of IN keyword
eg:[Salescountry] IN  {IN,CN,PH}
[Salescountry] ="CN" ||  [Salescountry] ="PH"

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍






Anonymous
Not applicable

This is not working. I tried but it says syntax error

amitchandak
Super User
Super User

@mimitan , Try like

[Column] in { "Value1" , "Value2"}

 

Same time you can not have two different value true

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
tex628
Community Champion
Community Champion

Hi @mimitan 

The && is an "AND" operator and the example you're giving will never return true. 

[Column] can never be "Value1" AND "Value2" at the same time. 

Are you looking for the OR operator? It's "||"

/ J


Connect on LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors