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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jma-consult
Frequent Visitor

RLS Dynamic on 2 different Dimension Table

Hi,

I need to create a Dax Rule on 2 different Dimension Tables.

1 Hierachic Dimension

1 Businness Dimension

For information  I have also 2 facts Tables.

The problem is when I create My currently Dax Function :

Hiearchic Dimension :

CONTAINS (
D_accredit,
D_accredit[UserPrincipalName],
USERPRINCIPALNAME(),
D_accredit[Unit],
[Unit]
)

Business Dimension

CONTAINS (
D_business,
D_business[UserPrincipalName],
USERPRINCIPALNAME(),
D_business[Name],
[Business Name]
)

 

I have only the data in the both filters.

But I need a OR filter

For exemple I need to show Business = "Marketing" or Acreditation = "France Area"

 

Some one has a solution ??

 

Thank you in advance!

 

2 REPLIES 2
jma-consult
Frequent Visitor

Thanks,

I will show your video.

Jean marc

amitchandak
Super User
Super User

@jma-consult , When you create 2 roles and assign to use you can get OR, Single role two conditions are AND

 

Also, you can have measure not column using userprinicpalname

 

You will have roles like

 

D_accredit[UserPrincipalName] = USERPRINCIPALNAME()

 

Power BI- Row Level Security: Handle ALL, UserPrincipalName: https://youtu.be/KVLEnIUo4pc

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.