cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
raasrini Frequent Visitor
Frequent Visitor

RLS:table filter DAX expression- possible to give multi values

Hi ,

 

Is it possible to add multiple values to the Table Filter Dax expression in Mange Roles -RLS. eg: I would like to give [Country]="United States","Canada".  I tried add filter and Gave in the Format [Country]="United States" && [Country]="Canada" and that doesn't seem to work either though there is no error while validation, but when I try to use Test as Role, I see nothing.

 

Any help is highly appreciated.

 

Regards,

Raaju

1 ACCEPTED SOLUTION

Accepted Solutions
KHorseman Super Contributor
Super Contributor

Re: RLS:table filter DAX expression- possible to give multi values

[Country]="United States" && [Country]="Canada" would translate as "[Country] must simultaneously have both the values 'United States' and 'Canada'" which is logically impossible for a single field to do. You need to use an OR operator, not AND. [Country]="United States" || [Country]="Canada"


Did I answer your question? Please mark it as a solution.

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
KHorseman Super Contributor
Super Contributor

Re: RLS:table filter DAX expression- possible to give multi values

[Country]="United States" && [Country]="Canada" would translate as "[Country] must simultaneously have both the values 'United States' and 'Canada'" which is logically impossible for a single field to do. You need to use an OR operator, not AND. [Country]="United States" || [Country]="Canada"


Did I answer your question? Please mark it as a solution.

Proud to be a Datanaut!

View solution in original post

raasrini Frequent Visitor
Frequent Visitor

Re: RLS:table filter DAX expression- possible to give multi values

Yes you are right. It works. Thanks a lot Smiley Happy I tried the default add filter option and not sure what can be capable with this.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 54 members 1,045 guests
Please welcome our newest community members: