cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sushicat_san Regular Visitor
Regular Visitor

3 Level Dynamic RLS

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!

3 REPLIES 3
Community Support Team
Community Support Team

Re: 3 Level Dynamic RLS

@sushicat_san,

 

You may try using LOOKUPVALUE Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sushicat_san Regular Visitor
Regular Visitor

Re: 3 Level Dynamic RLS

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. 

Highlighted
Jeff_Schlutz Visitor
Visitor

Re: 3 Level Dynamic RLS

@sushicat_san,

 

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors