Forum Discussion

Tine's avatar
Tine
New Member
9 years ago
Solved

How to manage roles which are defined by multiple values

Hello,
In the desktop version you can manage roles by defining a name, choosing the table and the "column"
Then you select one value out of this column to define a role
How can you manage a role which is assigned to more than one value out of one column?

Example:

 

There might be a role 1 allowed to see region North

There might be a role 2 allowed to see region South

There might be a role 3 allowed to see region North, South, ...

How can I modify the term (role1) below so that it fits to role 3, which is allowed to see at least 10 regions out of 30 regions

[Region] = "North" ...???

 

Thank you

 

  • Hi Tine,

     

    As the filter to create a role is using DAX expression, so you should be able to use "||" operator to add more regions to your role. The expression below is for your reference.:smileyhappy:

    [Region] = "North" || [Region] = "South" || [Region] = "Other Regions"

    Regards

7 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Tine,

     

    As the filter to create a role is using DAX expression, so you should be able to use "||" operator to add more regions to your role. The expression below is for your reference.:smileyhappy:

    [Region] = "North" || [Region] = "South" || [Region] = "Other Regions"

    Regards

    • Tine's avatar
      Tine
      New Member

      Thank you - it works

    • Anonymous's avatar
      Anonymous
      Not applicable
      The same case can work via AND condition.?
    • Anonymous's avatar
      Anonymous
      Not applicable

      How to use it like

       

      [ABC] LIKE "XYZ%"

  • Anonymous's avatar
    Anonymous
    Not applicable

    Updated answer in updated PBI versions:

    [Region] in {"North","South"}