Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17907

Need help in DAX Expression for RLS Direct query

$
0
0

I have 5 related tables. I have to block users by role

 

tables.PNG

 

If i enable the 'import' mode below expression is working but not in Direct query mode. Is there any method to convert it so i can use it in direct query mode?

 

[id] IN SELECTCOLUMNS (
FILTER (
    'user_project',
    (RELATED('users'[id]) = VALUE(USERNAME()) && 
    RELATED('roles_groups'[name]) <> "Power User")
   ),  "projects", [project_id]
)

Viewing all articles
Browse latest Browse all 17907

Trending Articles



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