Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Azure Analysis Service - Dual Role Security

Hey team,   Reaching out to see if I can get some perspective from users on the board who worked with RLS using Azure Analysis Services (or even SSAS on-prem) to define user group role security for...
  • Anonymous's avatar
    Anonymous
    6 years ago

    I was able to get my solution by talking with the Microsoft Power BI Support team. I opened up a ticket and got on a call with the engineers. By design, Power BI currently doesn't allow one role to filter out another role. The solution is that the DAX filters have to be applied to one single role to filter out the columns of interest, to create multiple conditions.

     

    Example: To create a role for a user who wants to see data for Country B + Product Type 2

    Instead of:

     

    User in two separate roles where:

    Country B Role = [Country] = "B" and Product Type 2 Role = [Product Type = 2, which will not work for my use case,

     

    you would want to have the following below:

     

    User Role for Country B+ Product Type 2 = [Country] = "B" && [Product Type] = 2

     

    I hope this helps to anyone else who is curious in knowing whether or not dual role security is possible with separate DAX column filters.

     

    Thanks all!