The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I have created a Role called 'Line_Manager' to show only the logged in users name in slicer ([EMPLOYEE_LOGIN_ID] = username()).
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:
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?
Solved! Go to Solution.
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
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.
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
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
42 | |
24 | |
23 | |
14 |