Forum Discussion

souzarodrigo's avatar
souzarodrigo
Regular Visitor
9 months ago
Solved

Issues with dynamic RLS and hybrid table

Hello community. I have a fact table with more than 100 million records, so I created two partitions in the semantic model: one in Import mode with a relative date range (hot partition) and another i...
  • v-sgandrathi's avatar
    8 months ago

    Hi souzarodrigo,

     

    Thank you for your detailed update. You are correct, when dynamic RLS is used with a small security mapping table, Hybrid (Import + DirectQuery) partitions can still cause a full DirectQuery scan if a visual includes a field from the fact table. This happens because the engine checks row-level permissions across all partitions, and if RLS could impact rows in the DirectQuery part, Power BI sends an extra security validation query to the DirectQuery partition, regardless of the user’s filters.

    This means dynamic RLS can still hit the 1-million-row DirectQuery limit. This is a known limitation of dynamic RLS with Hybrid tables, not a modelling issue. Static RLS works since the model resolves security at design time, avoiding the extra query. If possible, moving dynamic RLS to the source database is the most reliable workaround for large Hybrid tables. Other options include applying sensitive filters to fully imported dimensions or avoiding fact-level fields in the RLS logic. Thanks for sharing your findings, they’ll be helpful for others in similar situations.

     

    Thank you.