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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DarylRob
Helper I
Helper I

Row level security - Filter a table when many to one relationship

Hi, 

 

I've got two tables as below and i'm using row level security to filter on "Sales Associate", I then want this to filter all tables in the "Results" table by "Sales Rep"

 

So when I use row lvel security the peg table will be a one to many relationship but when not filtered it's a many to many relationship so doesn't seem to work. Any ideas?

 

Peg Table

Sales AssociateSales Rep
GaryBilly
GaryTerry
TimJill
TimBilly
TimJim
SandraTerry

 

Results:

Sales RepDeal NameRevenue
TerryDeal 110
TerryDeal 220
JillDeal 130
JillDeal 2100
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @DarylRob ;

1.One way is to change the direction of the relationship between the two tables to both.

vyalanwumsft_0-1646968019485.png

2.Another option is to use DAX statements on row-level security.

在多对多关系中 - 第 1 部分

在多对多关系中 - 第 2 部分

 

Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @DarylRob ;

1.One way is to change the direction of the relationship between the two tables to both.

vyalanwumsft_0-1646968019485.png

2.Another option is to use DAX statements on row-level security.

在多对多关系中 - 第 1 部分

在多对多关系中 - 第 2 部分

 

Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

DataInsights
Super User
Super User

@DarylRob,

 

This article explains how to handle a many-to-many relationship in row-level security:

 

https://radacad.com/dynamic-row-level-security-with-profiles-and-users-in-power-bi 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.

Top Solution Authors