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,
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.
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!
I am having exactly the same requirement.
Were you able to solve this? I'd really appreciate your help.