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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

RLS Filter User But Show Other Users Anonymously

Hi, I am able to use the Role Management feature to filter out data per username. This shows only the data for the specified user and hides everything else. However, I still want the user to be able to view the other user's data so that they can compare themself to the group, but the data should display anonymously. Is this something that can be done with a DAX expression or something?

Thank you.

5 REPLIES 5
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

I'm wondering if you could add a Rank column in your user table first, then create a new summarized table which contains only the rank and other information you want users to compare with in this scenario(mark sure there is no any relationship with this summarize table). Smiley Happy

 

Regards

Anonymous
Not applicable

@v-ljerr-msftI am hoping to get this result using RLS. I currently have a dynamic RLS setup with username(). Could some DAX function using SUBSTITUTE( create this result? 12-04-2017 7-25-18 AM.png

Hi @Anonymous,

 

After a few tests, I don't think there is a possible solution to get the exact expected result in your scenario. 

 

To get your expected result, you may need to add a column with values of the current user name, and "Others". However, the USERNAME function cannot be used in calculate columns/tables. So it may be not possible to determine who is the current user or "Others" in the new column/table. Smiley Happy

 

Regards

Anonymous
Not applicable

Can I get a little more input on this? How am I using this summarized table? How do I make it so that user "Bob" see's his metric and his name as "Bob", but everyone else anonymously? And then apply that to every user

Anonymous
Not applicable

So, basically you are saying to substitute the username's with a number? Including the user viewing their report. I would prefer if the user viewing the report could see their own name, but everyone else as "Anonymous". I am also not trying to show a "rank", just a way for the user viewing to compare where they are with the rest of the group.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.