Showing results for 
Search instead for 
Did you mean: 
RichardV Regular Visitor
Regular Visitor

Undo (dynamic) row level security with a DAX filter?



At the moment I am having the following challenge. I hope someone can help me.


I would like to create a report, and embed it in the portal. I am planning to use (dynamic) role level security to make sure each user sees only their own data. However, it is a requirement that users want to see average values of the other users as a benchmark. In other words, we need to "undo" the row level security filter for one or two measures.


One way to overcome this issue, is to create different tables, and apply role level security to selected tables only.


However, this will make modeling more complex. Therefore my question:


Is it possible to undo the dynamic role level security filter with a DAX formula?


That way we can create one report for multiple users, and each can make use of benchmark data, in which data of the other users will be used.


Many thanks in advance,



Moderator v-sihou-msft

Re: Undo (dynamic) row level security with a DAX filter?



Once Row Level Security is applied, the table context is filtered, so your calculation will only take the context with accessing users' own data only. And the internal working of Power BI is a Tabular model, there's no "Enable Visual Total" feature like Multidimensional Model. So it's not possible to undo RLS on any specific DAX formula.


For your requirement, I suggest you add a calculated column to get the average on ALL table. Since the calculated column is along with row leve, you can still get correct result when RLS is applied.







RichardV Regular Visitor
Regular Visitor

Re: Undo (dynamic) row level security with a DAX filter?



Many thanks for your response. I can see that it has taken some time to make an example for me, which I and my team highly appreciate. I have just another requirement.


In our benchmark values E.G. average sales amount of all users, which can be created by a calculated column we need to filter, we need to exclude the sales amount of the users viewing the report. That way, the user can benchmark him/herself to other users.


Do you know if a calculated column can be made to exclude the data from the user viewing the data via RLS?


If this is not possible, we might have to think about copying parts of our tables or do no use RLS at all, but just make 100 different reports for our users.


Many thanks in advance!  

RichardV Regular Visitor
Regular Visitor

Re: Undo (dynamic) row level security with a DAX filter?

By the way, we are using a SSAS tabular model


Re: Undo (dynamic) row level security with a DAX filter?

Hi Richard, 


I am having exactly the same requirement. 

Were you able to solve this? I'd really appreciate your help. 


Cheers, Edgar Walther
Power BI User Group Netherlands

Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 51 members 1,353 guests
Please welcome our newest community members: