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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Dynamic RLS

Hello Guys,
 I want to Set Dynamic RLS in Power BI..The Requirment is like i have sample data set like

PersonSales
Pradnya1000
Sam2000
Rahul3000

whenever Pradnya login to Dashboard she can able to see her data as well as all the sales value but other person name should be "****" please help how to do this in power bi.
I want Result like below table

PersonSales
Pradnya1000
****2000
****3000

Thank You!!!

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi  @Anonymous ,

According your descrebution,you could create masked column to achieve it,the following article could solve your question ,it tells about"One of the questions I got recently is this: “I want users to see one another’s sales information, but not to see who others are! How can I do that in Power BI?”

Doing something like above is a bit different from row-level security approaches. In this scenario, we do want the user to see other’s information, even how much sales they have made, But we do not want them to see WHO the others are.

This is more a data masking scenario than a row-level security. However, because the question often comes from the users of RLS, I explain it under that category. This blog post is about an approach for the explained scenario above.

"

To learn more details ,refer:

https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking 

 

 

 

Best Regards

Lucien

View solution in original post

3 REPLIES 3
Thennarasu_R
Responsive Resident
Responsive Resident

Using userpriciplename()

 

v-luwang-msft
Community Support
Community Support

Hi  @Anonymous ,

According your descrebution,you could create masked column to achieve it,the following article could solve your question ,it tells about"One of the questions I got recently is this: “I want users to see one another’s sales information, but not to see who others are! How can I do that in Power BI?”

Doing something like above is a bit different from row-level security approaches. In this scenario, we do want the user to see other’s information, even how much sales they have made, But we do not want them to see WHO the others are.

This is more a data masking scenario than a row-level security. However, because the question often comes from the users of RLS, I explain it under that category. This blog post is about an approach for the explained scenario above.

"

To learn more details ,refer:

https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking 

 

 

 

Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , if this is attached with the table having email  for RLS then you have a measure

 

if (Max(Table[email])  = userprincipalname(),Max(Table[Name]) , "****")

 

as we can not create a column with userprincipalname, have one id column which can be used in place on the name and a measure can be used for name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Users online (9,074)