Forum Discussion
Dynamic RLS: propagate to non-security dimensions
- Anonymous5 years ago
The answer was very simple after all... This piece of beauty did the trick:
[CustomerID] =
CALCULATE (
MAX ( User[CustomerID] ),
FILTER ( User, User[UserEmail] = USERPRINCIPALNAME () )
)This code needs to be applied to all Dimensions in my security role for which I only want to see lines relevant to Customer XXX
Hope this can help others too.
I was unable to find the solution to my problem in the links you provided. I have tried to illustrate the problem here, using another example, that hopefully is easier to relate to (this model works as expected, dynamically filtering Company table to only show allowed companies for UserEmail XXX, but it currently shows ALL Products):
Any help is much appreciated.
sturlaws I see you have solved similar issues in the past, maybe you have a suggestion?
I can produce a sample file if needed.
/S
- kumarprabhu8153 years agoFrequent Visitor
Hey, if you dont mind can you please share the final pbix file with solution