Forum Discussion

ziyab's avatar
ziyab
Frequent Visitor
1 year ago
Solved

RLS causing Resultset Greater Than 1000000 Rows Error

Hi, I have a DQ fact table which works fine when you interact with the slicers. But when RLS is applied, it results into Resultset Greater Than 1000000 Rows Error for same slicer options. Data sourc...
  • v-sgandrathi's avatar
    1 year ago

    Hi ziyab,

    To fix the issue, minimize bidirectional filters by keeping "Apply security filter in both directions" only between User  Bridge  Franchise & Location, and remove it from Business and other dimension tables.

    Simplify the RLS DAX rule by avoiding CONVERT and using a direct comparison like

    pk_dim_user[source_user_id] = "34510".

    Optimize the bridge table by pre-filtering it upstream for active users or applying DAX-based security in measures. Create Import-mode aggregation tables to handle common report queries and limit DirectQuery operations.

    Apply report-level filters early to restrict data volume. Optionally, use SQL Profiler on the Fabric Lakehouse SQL Endpoint to trace and analyze the query expansion during "View as Role."

     

    I hope this helped! Feel free to ask any further questions. If this resolved your issue, please mark it as "Accept as Solution" and give us Kudos to assist others.

     

    Thank you.