Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, New to Power BI and I hope someone can suggest a solution to this problem:
I have 3 tables (see below for sample) and need to implement row level security:
BRANCH (branchcode, branchname)
TRANSACTION (branchcode, type, [other stuff...])
USER_BRANCH (user, branchcode)
BRANCH is on the "one" side of 1:* relationships in the model with the other 2
The RLS we want is that user should equal userprincipalname(). We have it working fine if we have a branchcode for the user ([user] = userprincipalname() or something like that), BUT
HERE'S THE PROBLEM:
The business logic used in the app states that if a user doesn't have a branchcode (they're blank) then they have access to ALL the branches. These users would be in a home office that needs to see all transactions no matter what the branch.
The only solution I'm seeing is adding every combination of "blank" users for all the branches, but that will add 50,000 records and I am not excited about that. Does anyone have another solution?
Solved! Go to Solution.
OK, I got it working without getting into groups assigned to multiple roles.
OK, I got it working without getting into groups assigned to multiple roles.
Would this work? Put the "blank" users in a role/group that doesn't have the filter on that field?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 74 | |
| 51 | |
| 50 | |
| 46 |