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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
denpries
Resolver I
Resolver I

Dynamic RLS : directly on FACT table or not?

Dear all,

 

I have a dynamic RLS that does a lookup on email addresses. Basically, something like this in the roles model. 

 

fact[BU]
            = LOOKUPVALUE (
                access[BU],
                access[Email], USERPRINCIPALNAME (),
                access[BU], fact[BU]
            )

In this example, only rows of FACT are shown for each BU that is connected to the email address that corresponds with USERPRINCIPALNAME().

 

However, my fact table is 500k rows long. I dont notice any performance degradation, but i would like to know if i could better have the RLS on an in between table that contains all BU's (constructed from FACT table), and then have a relation from FACT to INBETWEEN while the security RLS limits the 

 

I see and know that it works, but i dont have a clue what is the better option and why

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @denpries,

 

I'm not very clear about what you said "have the RLS on an in between table that contains all BU's (constructed from FACT table)". Here is a blog provides a solution that create RLS via relationship.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

What i mean is the following.

 

Either you have the RLS function on the FACT table. (500k rows). No relation table.

 

OR

 

you have the RLS function on a small table (20 rows) that contains all unique Business Unit items.

This 'in between' table has a relation with the FACT table Business unit field, so that if RLS says that only 10 out of 20 rows are valid to be seen, this travels down to the fact table using the rlation.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors