cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
sivarajan21
Helper V
Helper V

Bi-directional and many-many relationship in Dynamic Row level security

Hi,

 

I have below dynamic RLS(row level security) for my data:

sivarajan21_1-1696355377073.png

 

This relationship perfectly filters my data but unfortunately below bi-directional relationship between user allowed table and company management table causes performance issues.

sivarajan21_2-1696355438216.png

 

Also, I have read many articles that many-many relationships are not ideal for power bi modeling and the below many-many between user allowed table and core user table also causes concern:

sivarajan21_3-1696355539374.png

 

so want to avoid many-many and bi-directional relationship.

Can someone please guide, is there any better approach like(Dax) to resolve this issue?

 

Please let me know if you need further  info.

Thanks in advance!

@Ahmedx @Greg_Deckler @amitchandak @Ashish_Mathur 

 

3 REPLIES 3
sivarajan21
Helper V
Helper V

Hi,

 

Please can someone help me with the below RLS dax measure as it is giving me below error:

sivarajan21_1-1696491459928.png

Dax measure is:

[Company Id] IN SELECTCOLUMNS(
FILTER(
'UnifyLive_UserAllowedCompany',
RELATEDTABLE(UnifyLive_Core_User[Id])=USERPRINCIPALNAME()
),
"Company Id"
,[Company Id]
)

 

Below is the model:

sivarajan21_0-1696491177785.png

 

Thanks in advance!

@Ahmedx @marcorusso @amitchandak @Greg_Deckler 

amitchandak
Super User
Super User

@sivarajan21 , I am assuming the "core user" is RLS table. it is fine to have many to many with RLS table, because after the filter it will act like 1-many

 

But the other "1 to many" between your fact and dimension should be single directional

Hi @amitchandak ,

 

Thanks for your quick response!

Could you please help me how to achieve this 'But the other "1 to many" between your fact and dimension should be single directional'?

 

Thanks in advance

@Ahmedx @amitchandak 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors