Forum Discussion

lfrancfort's avatar
lfrancfort
Frequent Visitor
8 years ago
Solved

DAX and RLS using a "security role" table

Hello !   I'm trying to apply RLS and can't find the right DAX formula.    My data is the number of employees per location for several companies (table name CompaniesAndLocations):      ...
  • v-ljerr-msft's avatar
    8 years ago

    Hi lfrancfort,

     

    According to your description above, you should be able to simply create a role with the following DAX formula without creating any other calculate columns to implement the RLS in your scenario. What you need to do is creating properly relationships among your tables. For more details you can refer to this article. :smileyhappy:

    UsersAndCompanies[UserName] = USERNAME ()

    image

     

    Regards