Here’s exactly how to set up RLS (Row-Level Security) in Power BI:
- Start by navigating to the 'Modeling' tab in the Power BI Desktop ribbon.
- Now, select 'Manage Roles' to begin setting up your Row-Level Security.
- In the Manage Roles dialog box, click the '+ New' button to create a security role.
- Give your role a descriptive name that clearly indicates its purpose.
- Select the table that contains the data you want to filter.
- Click 'Switch to DAX editor' to create more advanced filtering conditions using DAX expressions.
- Enter your DAX filter expression.
- Click 'Save' to apply your RLS role configuration to the model.
- A confirmation pops up once you have successfully implemented Row-Level Security in Power BI.
- RLS filters data based on user identity. Users assigned to this role will only see data that meets your filter criteria.