Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I have the attached .pbix file that I'm trying to configure RLS for here. The TerritoryAssign table is maintained by our Sales Admin team, and I'm trying to find a solution where I don't have to reformat that table (if possible).
Here's the issue: I've seen many solutions that use RLS with two columns of data - Child and Parent. In the attached, I have three levels of a hierarchy - territory, district, and region. I cannot figure out the correct DAX formula to validate the RLS with these three levels.
Any help would be much appreciated!
@Anonymous,
Try using the Switch function which is essentially the DAX equivalent of a nested if statement.
SWITCH( userprincipalname(), [Sales Person Email], [Sales Person Email]=USERPRINCIPALNAME(), [District Manager Email], [District Manager Email]=USERPRINCIPALNAME(),[Regional Manager Email], [Regional Manager Email]=USERPRINCIPALNAME())
Best regards,
Jeff
@Anonymous,
You may try using LOOKUPVALUE Function.
Thanks for the reply @v-chuncz-msft.
Unfortuntely, this solution doesn't look like it will work, because I'd have to return the UserPrincipalName() from three separate fields.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 53 | |
| 40 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 97 | |
| 81 | |
| 35 | |
| 29 | |
| 25 |