The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I'm having trouble formatting my RLS filters with both OR and AND on the same table. It seems that it doesn't like regular dax format...
If I wanted to filter for both criteria below, how could I format it?
The syntax below in the screenshot works fine for the first criteria, but I can't figure out how to add an "AND" correctly.
Thanks in advance.
Solved! Go to Solution.
You need to protect the OR from the AND. Use Parentheses or IN
USERPRINCIPALNAME() IN {[PrincipalClientManagerUsername],[PrincipalClientUsername] && [Column A]="123"
You need to protect the OR from the AND. Use Parentheses or IN
USERPRINCIPALNAME() IN {[PrincipalClientManagerUsername],[PrincipalClientUsername] && [Column A]="123"
Thank you @lbendlin , this worked perfectly. I thought I had tried that, but I must have had the syntax wrong. Very simple and it works just fine. Have a great day 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
75 | |
36 | |
33 | |
23 | |
14 |