March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Background: I have Dynamic RLS sucessfully set up across a broad number of workforce tables using the branch (org code) and the supervisor's UPN to limit access for our department workforce data to only the supervisors of each org code. It works fantastic for 99% of my tables because Org is always a single column.
However, in the 3rd example table I have at the bottom, I have an Org TO column and an Org FROM column for tracking temporary assignments between orgs.
I need my managers to be able to view data from that table for employees on temporary assignment both into and from their org as there are responsibilities involved for both the receiving org and the losing org supervisors. I've only been able to model the relationship from the Supervisor Row Access Table to the Temporary Assignment table using one or the other column, and so far the advice I've turned up online is to create separate tables for Assignments IN and Assignments OUT. This is possible, but it would mean much, much more work as this data affects several other visuals in our reports.
What I'm hoping for: Is there a way for me to set up a conditional relationship between the Supervisor Row Access Table and the Temporary Assignment Table where the supervisors have access to rows where their Org appears in either the Org From column OR the Org To column? Any help is appreciated!
Supervisor Row Access Table:
User | Org | UPN |
Supv Name | Branch They Supervise | |
Name | Branch They Supervise |
Sample basic workforce table
Org | Employee | Grade |
Branch | Employee Name | GS Level |
Branch | Employee Name | GS Level |
Temporary Assignment Table
Org FROM | Employee | Org TO | Effective Date |
Branch | Employee Name | Branch | Date |
Branch | Employee Name | Branch |
Solved! Go to Solution.
Add this DAX to the role for table Temporary Assignment:
[Org FROM]
IN SELECTCOLUMNS (
FILTER (
'Supervisor Row Access',
'Supervisor Row Access'[UPN] = USERPRINCIPALNAME ()
),
"Org", [Org]
)
||
[Org TO]
IN SELECTCOLUMNS (
FILTER (
'Supervisor Row Access',
'Supervisor Row Access'[UPN] = USERPRINCIPALNAME ()
),
"Org", [Org]
)
Temporary Assignment should not have a relationship with Supervisor Row Access (otherwise it would cause filtering to occur on only the column in the relationship).
Proud to be a Super User!
Add this DAX to the role for table Temporary Assignment:
[Org FROM]
IN SELECTCOLUMNS (
FILTER (
'Supervisor Row Access',
'Supervisor Row Access'[UPN] = USERPRINCIPALNAME ()
),
"Org", [Org]
)
||
[Org TO]
IN SELECTCOLUMNS (
FILTER (
'Supervisor Row Access',
'Supervisor Row Access'[UPN] = USERPRINCIPALNAME ()
),
"Org", [Org]
)
Temporary Assignment should not have a relationship with Supervisor Row Access (otherwise it would cause filtering to occur on only the column in the relationship).
Proud to be a Super User!
This is fantastic, thank you so much!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |