Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power BI Report Server - Row Level Security

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()
)
)

1 REPLY 1
Anonymous
Not applicable

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. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.