Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
abhi8569
Frequent Visitor

Applying RLS using nested Lookup

Hello Community,

 

I am facing a problem when trying to apply RLS on my Model.

This is how my model looks:

abhi8569_0-1686305964492.png

 

I am currently attempting to implement the RLS filter using the 'UserLocation' field found in 'Fact_Table 4'. From my understanding, the following steps should be followed:

  1. Apply a LOOKUP function using the USERPRINCIPALNAME() from DIM_Table 1 to retrieve the UserLocation from FACT_Table 2.
  2. Use another Lookup to fetch the Location value from FACT_Table 4.

I am uncertain whether this approach is feasible and would appreciate guidance on how to proceed.

Please inform me if there is any additional information I can provide.

Thank you for your assistance in advance!

 

PS: I am implementing this on Azure Analysis Services, but I think there isn't much difference compared to RLS in Power BI.

2 REPLIES 2
lbendlin
Super User
Super User

this will only work if you "apply security filters in both directions". General guidance is to apply RLS to the outermost dimension tables in your star/snowflake schema, not to the fact tables.

Thank you for the response.

 

Yes, I have already applied "apply security filters in both directions". I was just hoping I could apply the RLS based on nested lookup.
Other way will be to enable two way filter from 'Fact_Table 2' to 'Dim_Table 3' and then apply security filter. But I can not really enable this as microsoft only allows one relationship per table with this setting.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.