Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
We are trying to implement row level security on Power BI RS. But getting stuck on trying to create a column to compare userprincipalname function to our organization hierarchy. I have created a measure. see below:
My table is Incidents and I have organization hierarchy columns created so that managers can view all their employees records and employees can only view their own records. So I have compare the user name to all levels. The below measure works but I am not able to drag the measure into a page filter on my report so that it filters all my visuals.
The only reason I am having to do this is because I do not see a way to setup users to a role on power BI Report server. I have this security working in Power BI service.
Please advise if there is a better way for me to apply security in Power BI report server.
Thanks!
userSecurityNew = CALCULATE(
COUNTROWS(INCIDENTS),
FILTER(SUMMARIZE(INCIDENTS,INCIDENTS[Assigned_Email_Lookup],INCIDENTS[Organization Hierarchy Level 5],
INCIDENTS[Organization Hierarchy Level 4],INCIDENTS[Organization Hierarchy Level 3],INCIDENTS[Organization Hierarchy Level 2]),
[Assigned_Email_Lookup]= userprincipalname()
|| [Organization Hierarchy Level 5]= userprincipalname()
|| [Organization Hierarchy Level 5]= userprincipalname()
|| [Organization Hierarchy Level 5]= userprincipalname()
|| [Organization Hierarchy Level 5]= userprincipalname()
)
)
Rls doesn't work on PBIRS. It is planned until end of the year.
You can achieve this with a SSAS cube or SQL Server.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |