Forum Discussion
andrewnzinuk
3 years agoFrequent Visitor
Row Level Security and Roles
I have a table called Cost_Centre, within that table I have a column called UPN which is the UPN of the cost_Centre manager. This column can have multiple values in it. For example I have placed the ...
ppm1
3 years agoSolution Sage
Try this instead for your RLS filter. If performance poor, you could alway split your text into a list with Text.Split and expand that list to new rows and use your simpler filter expression.
CONTAINSSTRING(dim_CostCentre[UPN], USERPRINCIPALNAME() )
Pat
andrewnzinuk
3 years agoFrequent Visitor
Hi Pat
Tried that - unfortunately my Visual Studio does not recognise that DAX function. I am not sure if it relates to my version of Analysis Services - which is SQL 2017. I was going to upgrade and see if CONTAINSSTRING will be accepted, is it a relatively new function . Thanks