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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
mom22
New Member

How do I alter data display based on security?

I have a table that displays employee data, some of which is sensitive.  We want to hide the employee name for users who don't have the proper security.  I already have the following datasources.  I am just not sure how to link them together to get the results I want.

Employee Data:  
NameSalaryPayGroup
Jane Doe200001
John Doe150002
Jim Smith100003
Joe Shmoe50004
Tom Thumb250001

   

Current User Name:
UserName
=USERNAME()

   

User Security Info: 
UsernamePayGroup
mydomain\Donald1
mydomain\Donald2

 

I have 2 users in my example - Donald and Nancy.  When they view the report, the table should look like so:

User Donald should see:
Employee NameSalary
Jane Doe20,000
John Doe15,000
Tom Thumb25,000
*****15,000

   

User Nancy should see:
Employee NameSalary
*****75,000

 

Any ideas?

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.