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
MarkCBB
Helper V
Helper V

RLS DAX Syntax for OR/AND

Hello,

 

I am messing around with the RLS on PowerBi.com, I can get simple DAX to work i.e. [CHANNEL] = "PNP"

 

But I would like to create the ability for a user to see 2 CHANNEL. i.e. [CHANNEL] = "PNP" or [CHANNEL] = "OMO"

 

the other one that I am trying to do is [CHANNEL] = ("PNP or [CHANNEL] = "OMO") and ([REGION] = "R1" or [REGION] = "R2")

 

But I cant find the correct syntax to do this, has anyone been able to do something similar?

 

2 REPLIES 2
MarkCBB
Helper V
Helper V

 

ok, I was able to get the one working, OR([CHANNE] = "PNP",[CHANNEL] = "OMO"

 

still struggleing with the other one

 

 

 

I know, your message is a little older, but perhaps it helps someone else...

 

For the problem with [CHANNEL] = ("PNP or [CHANNEL] = "OMO") and ([REGION] = "R1" or [REGION] = "R2")

 

Did you try

 

AND(
OR([CHANNNEL]="PNP",[CHANNEL] = "OMO"),
OR([REGION]="R1",[REGION] = "R2")
)

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.

Top Solution Authors
Top Kudoed Authors