Forum Discussion
Rank changes when RLS is applied
I'm not 100% sure but I think it's not possible. When you apply RLS, it means that the current user CAN'T SEE data rows that get filtered out. It also means that DAX just excludes the filtered out rows from any analysis---it treats them as if they are just not there. You can't through DAX "unhide" the rows for the duration of the calculation.
Think about it this way. If you have 2 countries, the USA and the UK, and the user has only permissions to view data that belongs to the USA, then there is no way to somehow hack into data from the UK.
- Senthil_Kumar5 years agoFrequent Visitor
Anonymous Thanks for the reply.
Yes, its difficult to bypass RLS.I was thinking of an altenative but I am stuck with implementation. Not sure if this is doable.
I created 2 Dealer table, one name Dealer_Table_RLS which I have modeled wtih RLS table so that dealers will get filtered based on RLS and a Dealer_Table with Fact sales for calculating rank of all dealers
Calculate Ranking for whole set of dealer using Dealer_Table and then some how lookup this ranks to the filtered Dealers from Dealer_Table_RLS table.
- Anonymous5 years agoNot applicable
Hi Senthil,
You can also compute the Ranking wihtin Power Query or Backend as this needs to be static.
- Anonymous5 years agoNot applicable
Hello,
I also have same scenario and couldnt achieve it and not sure if it is doable. Just trying to understand if you were able to achieve the expected result. If yes, could you please post the solution steps.