Forum Discussion
RLS Rules
- Anonymous5 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.
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.