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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors