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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ovonel
Post Prodigy
Post Prodigy

can't model relationship in power bi

I am not sure how to model this.

 

I have 3 tables.

  • Fact
  • Contract
  • Clients

 

ContractManager1Manager2
1PeterRob
2PeterTim
3TimJames
4PeterJames

 

 

ClientC. Manager1
1P
2NM

 

 

Fact:

SaleContractClient
1011
1012
1022
1032
1042

 

 

Then, the access with RLS will be based on contract. If you are manager1 or manager2 for that contract you shall see it (also if you are c. manager1  on that row you shall see it too).

 

So, for the table for access,  I will do an Unpivot like:

SqlTable  
ContractClient 
11Manager1
11Manager2
11C. Manager1
12Manager1
12Manager2
12C. Manager1
22Manager1
22Manager2
22C. Manager1
32Manager1
32Manager2
32C. Manager1
42Manager1
42Manager2
42C. Manager1

 

 

I have tried this model but it doesnt work:

ovonel_0-1660749124648.png

 

 

Is there a way to achieve this functionality?

1 REPLY 1
amitchandak
Super User
Super User

@ovonel , refer if this blog can help

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.