Forum Discussion
RLS Rules
- Anonymous4 years ago
Hi Krcmajster ,
I have built a data sample for better understanding:
ID is 5 = SUMX(FILTER(InternetSales, InternetSales[SalesTerritoryID]=5),[Freight])User is E = SUMX(FILTER(InternetSales, InternetSales[User]="E"),[Freight])RLS is used to restrict data access for given users. The DAX filter expression used for RLS should return a True/False value, so I created two roles:
The final output is shown below:
So based on my test, Import +SUMX() could works for RLS.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Krcmajster ,You can create this like a measure.
= SUMX(FILTER(InternetSales, InternetSales[SalesTerritoryID]=5),[Freight])
There are a few limitations for what you can use in new column in Direct Query
- Krcmajster4 years ago
Helper IV
amitchandak Thanks for your answer. Direct Query is of no interset for me. My question is more about RLS. We have multiple clients in our database and we apply RLS based on client name in one table
Now, I want to use functions like SUMX or CROSSFilter in my measures (I am not setting up RLS) but I am unsure if they will be impaceted by RLS.