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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jma-consult
Regular 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
Regular 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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors