Forum Discussion

Optimusprime_25's avatar
Optimusprime_25
Resolver I
3 years ago
Solved

Dynamic RLS based on multiple depts in multiple countries for a specific user

Hello Team,   I am currently stuck at implementing RLS for multiple depts in multiple countries for a specific user.   I have successfully implemented RLS, in filtering multiple countries for a p...
  • Optimusprime_25's avatar
    Optimusprime_25
    3 years ago

    Hi Anonymous ,

     

    Thanks for your support.

     

    I have implemnted the dynamic RLS based on multiple countries and multiple depts for a specific user.

     

    Below are the relationships which I have implemented between multiple tables.

     

    Below is the DAX which I have implemented in the roles.

    In above DAX code, we are restricting country as well as unit of a specific user.

    From above example, we can see that emp3 is having access to USA and Canada and units ABC and XYZ.

    So he is able to see the respective data

     

    Thank you.