Forum Discussion

BassG's avatar
BassG
Icon for Helper I rankHelper I
1 year ago
Solved

Power BI Row Level Security on a single page?

It seems Power BI natively isn't very good with anything other than "all or nothing" RLS, but I'm looking to find a workaround to create a single page RLS in a Power BI tool. What I have in the tool...
  • rohit1991's avatar
    1 year ago

    Hi BassG ,
    Power BI doesn't natively support applying Row-Level Security (RLS) to just a single page, as RLS is model-wide by default. However, a practical workaround is to create a duplicate of the pupil-level data table specifically for the page that needs restriction. You can then apply RLS only to that duplicated table by linking it to your Permissions or School table, and use this version exclusively on the pupil-level page.

     

    The rest of the report can continue using the original, unrestricted school-level data without being affected by RLS. This allows you to restrict detailed pupil-level data while keeping the other pages open and filterable across all schools.

     

    Alternatively, for a less secure but simpler method, you can create a DAX-based visual-level filter that checks if the user has access to the school and only displays pupil-level visuals when appropriate. From your data model image, it seems you're already working with multiple school-related tables, so it's important to ensure only one of those drives the RLS logic to avoid complications from ambiguous relationships.