Forum Discussion
Row Level Security with multiple conditions
Hi veenashenolikar,
It might sound simple but I have to ask, have you tried using the USERELATIONSHIP() function in your DAX measure for RLS?
The function uses inactive relationships.
Hope this helps.
Thank you,
Vishesh Jain
Hi visheshjain ,
I tried writing the DAX but was not able to form the complete expression.
If you could please help me with the same.
Thanks in advance!
- visheshjain3 years agoImpactful Individual
Hi veenashenolikar,
Please refer to this doc USERELATIONSHIP function (DAX) - DAX | Microsoft Learn
Also, I can give it a shot, if you can share your sample file.
One more thing, you will need to replace ALL in your Gender column with 2 rows, unless you have the value 'All' in your data as well.
Thank you,
Vishesh Jain
- veenashenolikar3 years agoHelper V
Hi visheshjain ,
I am handling the ALL using a crossjoin with the dimesion table and a custom column.
I will send over the sample file for your perusal
Thanks,
Veena