Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62322

RLS with Direct Query

$
0
0

Hello All,

We are migrating from import mode to direct query mode and would like to implement the same RLS we have in import mode. Unfortunately, our RLS uses LOOKUPVALUE function which is not supported in direct query. Here is our current RLS expression.

[V] = LOOKUPVALUE(
           'Sec'[V],
           'Sec'[User],USERPRINCIPALNAME(),
       'Sec'[V],'DIM'[V]
         )
||
[PC] = LOOKUPVALUE(
           'Sec'[PC],
           'Sec'[User],USERPRINCIPALNAME(),
       'Sec'[PC],'DIM'[PC])
 
Single user can have multiple V's or PC's. I have tried multiple things but it is not working as expected. Could you please help me with this?

Viewing all articles
Browse latest Browse all 62322

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>