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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
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.

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.