Hi,
I have a minor challenge regarding RLS.
I have a loong list of users in a organizational hierarchy - and as these hierarchies goes - it's not straight forward.
Hence people typically have multiple roles/responsibilities in different levels of the hierarchy
I have tried to set it up by using the existing RLS guides and DAX Expressions - by adding a non-related users table.
Eg: http://www.sqlservercentral.com/blogs/koen-verbeeck/2016/04/28/dynamic-security-in-power-bi/
This works fine when the filter and role allign 1 to 1 - (when 1 user has 1 role/responsibility) - eg. RLS Rules:
1) DimUser[Email]=USERNAME()
2) DimSalesResponsible[SalesRespKey]=DimUser[UserSalesRespKey] (measure)
DimUser[UserSalesRespKey]
UserSalesRespKey = LOOKUPVALUE (
DimUser[SalesRespKey];
DimUser[Email]; USERNAME())
However the measure and filter fails when the user has multiple roles (which I understand as it is a scalar and cannot take multiple values).
I'm trying to get around this by making a calulated table instead of a measure - but RLS filtering does not provide much feedback at the moment - and I'm not sure it's the right way to go.
I hope to get some feedback on this - either in form of a way of making the filter/measure accept multiple values or not using a measure at all to filter the rows in RLS.
Any help is appreciated
Rgds,
Johnny