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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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