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
Anonymous
Not applicable

MANAGE ROLES - Exclude certain values in Dax ROW LEVEL SECURITY HELP!

Hello, 

So I have a table with data with 10 company departments.  I want only 3 users t see everything and the rest to see only the data for 9 departments.  Is there a way in the Table Filter dax expression to tell it to show everything but one department

As you see below, I need restrict most of my users from seeing this department "HR" but see everything else. 

I was thinking of creating 2 PowerBi reports but I'm sure there's a way around this.  Any thoughts?

 

SAMPLE POWERBI.PNG

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my research, you could use the USERNAME() function to implement dynamic row level security for differenr users, and you could refer to below blog:

http://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.