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
electrobrit
Post Patron
Post Patron

relationship with duplicates

Trying to figure out how to handle this. 
I am doing row level security for the managers of stores and corporate. Want the people who should see their store to be able to see their store or stores if multiple. There are multiple people who can see each store and they crossover to see other stores as well.

First in trying to create the relationship, it makes sense for both tables (user and sales) to have duplicates but I do a relationship with the tables on store # and it won't work.

What is the solution? and thanks in advance

 

USER TABLE 
NameManager
John@co.com  Store 1
Rita@co.comStore 1
Fred@co.comStore 2
Wes@co.comStore 3
Wes@co.comStore 1

 

SALES TABLE  
MonthStoreSales
FebStore 1100
MarchStore 180
AprilStore 160
FebStore 240
MarchStore 212
AprilStore 213
FebStore 350
MarchStore 313
AprilStore 320
1 REPLY 1
v-lili6-msft
Community Support
Community Support

HI, @electrobrit

After my test, you need to add a Store fact table as the middle table to create the relationship for the two table 

use DISTINCT Function and UNION Function to create the Store fact table

Store = DISTINCT(UNION(VALUES(SALES[Store]),VALUES(USER[Manager])))

Then create the relationship as below:

19.JPG

 

Best Regards,

Lin

 

 

 

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

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