Add Row Level Security to your solution with the Permissions Table to filter down the access to the data users have access to.
1. Open the PBIX file.
2. Go to Transform and make sure the tables DimOrgStructure and DimOrgStructurePermissions are added.
3. Back in Power BI Desktop, open the Modeling tab and click on Manage Roles.
4. Click on Create and change the name of New Role to Admin.
5. Click on Create once more and change the name of New Role to Users.
6. In the Users Role, add the following Dax filter to the DimOrgStructure Permissions Table.
or([DomainUserName]=username(),[UserPrincipalName]=userprincipalname())
8. Create a relationship from the Permissions table to the DimOrgStructure table.
Use the columns below to create the relationship:
'DimOrgStructurePermissions'[HierarchyId]
'DimOrgStructure'[Site_Code]
0 Comments
Add your comment