Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Power BI Gurus,
I was wondering if there is a way to set up RLS in this scenrio:
Permissions Table:
Employee | Entity |
name1@domain.com | Entity1 |
name2@domain.com | Entity2 |
name3@domain.com | Entity3 |
name4@domain.com | Entity4 |
Fact Table structure:
Entity Initiating | Entity Impacted | DataField1 | DataField2 |
Entity1 | Entity3 | 2 | abd |
Entity2 | 5 | dgs | |
Entity4 | Entity1 | 123 | kjl; |
Entity4 | Entity4 | 86 | jhk |
Entity3 | Entity2 | 687 | ghkg |
I need Employee to be able to access if their entity is either Initiating or Impacted?
I've done "straighforward" set up before where i'd only have one Entity column, but here I am stuck
Thank you!
Solved! Go to Solution.
Hi @ogend ,
According to your description, Here's my solution.
Don't make relationship between the two tables. In Manage roles, create a new role with two DAX filter expression:
1. Permissions Table.
[Employee] = USERPRINCIPALNAME()
2. Fact Table.
[Entity Initiating] =
MAXX (
FILTER (
'Permissions Table',
'Permissions Table'[Employee] = USERPRINCIPALNAME ()
),
'Permissions Table'[Entity]
)
|| [Entity Impacted]
= MAXX (
FILTER (
'Permissions Table',
'Permissions Table'[Employee] = USERPRINCIPALNAME ()
),
'Permissions Table'[Entity]
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Hi @ogend ,
According to your description, Here's my solution.
Don't make relationship between the two tables. In Manage roles, create a new role with two DAX filter expression:
1. Permissions Table.
[Employee] = USERPRINCIPALNAME()
2. Fact Table.
[Entity Initiating] =
MAXX (
FILTER (
'Permissions Table',
'Permissions Table'[Employee] = USERPRINCIPALNAME ()
),
'Permissions Table'[Entity]
)
|| [Entity Impacted]
= MAXX (
FILTER (
'Permissions Table',
'Permissions Table'[Employee] = USERPRINCIPALNAME ()
),
'Permissions Table'[Entity]
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
@ogend , You need to create two copies of the permission table, Join one with each. Then make two roles and assign both to the users. Two roles are OR
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |