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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.