Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am trying to filter my dashboard based on the UserName. However, when users open the dashboard in PowerBi service the results are not filtered. Please help.
CM
Solved! Go to Solution.
Hi @cmelgar,
Thank you for reaching out to the Microsoft Fabric Forum Community.
Thanks to @lbendlin, for the guidance! Since you have confirmed that USERPRINCIPALNAME() works in Power BI Desktop ("View As" mode) but does not apply in Power BI Service, the issue likely lies in how Row-Level Security (RLS) is configured and applied in the service.
Please refer the below links for better understanding:
Solved: RLS does not apply even when adding colleagues as ... - Microsoft Fabric Community
Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @cmelgar,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Yes, I meant report. I did use the UserPrincipalName(), and it works in the desktop version when I use "view as". But in Power BI service it does not.
How are you testing it in the service and what does "it does not work" mean?
I am having users open the report that was published. When they open it they can still see other users numbers and details. This is what I meant by not filtering by user.
Hi @cmelgar,
Thank you for reaching out to the Microsoft Fabric Forum Community.
Thanks to @lbendlin, for the guidance! Since you have confirmed that USERPRINCIPALNAME() works in Power BI Desktop ("View As" mode) but does not apply in Power BI Service, the issue likely lies in how Row-Level Security (RLS) is configured and applied in the service.
Please refer the below links for better understanding:
Solved: RLS does not apply even when adding colleagues as ... - Microsoft Fabric Community
Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Thank you for your help! I did everything prescribed, but one thing that I did not know was that users need to be added as "viewers" in the workspace. Also, if a link has been shared, this needs to show that users are not able to read/reshare. Otherwise, the filter won't work. After doing these two fixes now it works!
Hi @cmelgar,
Thank you for the update! I'm glad to hear that assigning users the Viewer role and adjusting the sharing settings resolved the issue.
If you found this information helpful, please consider marking the response as Accepted Solution this helps other community members who may face the same challenge.
Thank you
You cannot filter dashboards. Did you mean to say report?
Use Report URL filters or RLS and USERPRINCIPALNAME() to filter by user.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 55 | |
| 49 | |
| 44 | |
| 16 | |
| 16 |