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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
giramswa
Helper II
Helper II

RLS partially working in Power BI Desktop but not in Power BI Service

Hi All,

 

I have created a Role called 'Line_Manager' to show only the logged in users name in slicer ([EMPLOYEE_LOGIN_ID] = username()).

giramswa_0-1650547015638.png

 

When I test it using 'View As', I can see only my name in slicer, which otherwise would show list of all employees.

Published this report.  

I then added some manager names, along with my name under the role in the Security menu on this report:

giramswa_1-1650547211666.png

When I try to test this in Power BI service, the slicer does not show any records, while the same slicer in Power BI desktop show my name. How to fix this?

giramswa_2-1650547309886.png

 

 

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @giramswa 

Thanks for reaching out to us.

Try userprincipalname() instead, for the reason please check this blog: USERNAME() v/s USERPRINCIPALNAME() in RLS for Pow... - Microsoft Power BI Community

vxiaotang_0-1650871671350.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @giramswa 

Thanks for reaching out to us.

Try userprincipalname() instead, for the reason please check this blog: USERNAME() v/s USERPRINCIPALNAME() in RLS for Pow... - Microsoft Power BI Community

vxiaotang_0-1650871671350.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors