Row-level security (RLS) uses a DAX filter as the core logic mechanism.
Configure row-level security with the static method
The static method in row-level security (RLS) uses a fixed value in the DAX filter, while the dynamic method uses a DAX function.
RLS involves several configuration steps, which should be completed in the following order:
- Create a report in Microsoft Power BI Desktop.
- Import the data.
- Confirm the semantic model between both tables
- Create the report visuals.
- Create RLS roles in Power BI Desktop by using DAX
- Test the roles in Power BI Desktop.
- Deploy the report to Microsoft Power BI service.
- Add members to the role in Power BI service.
- (i.e. HR vs Sales)
- Test the roles in Power BI service.
Configure row-level security with the dynamic method
- userprincipalname
others
rows in power bi are additive. i.e. multi roles to same user results in union of result.
if we want intersection, need to create additional role.