cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tine Frequent Visitor
Frequent Visitor

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-ljerr-msft Super Contributor
Super Contributor

Re: How to manage roles which are defined by multiple values

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.Smiley Happy

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

Regards

5 REPLIES 5
v-ljerr-msft Super Contributor
Super Contributor

Re: How to manage roles which are defined by multiple values

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.Smiley Happy

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

Regards

Tine Frequent Visitor
Frequent Visitor

Re: How to manage roles which are defined by multiple values

Thank you - it works

Anonymous
Not applicable

Re: How to manage roles which are defined by multiple values

The same case can work via AND condition.?
Akshaypuppal Regular Visitor
Regular Visitor

Re: How to manage roles which are defined by multiple values

How to use it like

 

[ABC] LIKE "XYZ%"

Akshaypuppal Regular Visitor
Regular Visitor

Hide slicer items depending on selections of slicers from other table

Capture.PNG

 

i am Using below DAX

Curreny Selected =
IF(CALCULATE(COUNTROWS ( FILTERS ( Company[Country]) ),
ALLSELECTED (Company[Country])) >1 ,"Group", IF(HASONEVALUE(Company[Country]) && SELECTEDVALUE('Currency'[Currency],"Please Select Currency AS Needed")="Local","Local","Group")
)
 
 
I want Result as following
 
When i select Multiple countries from country slicer i should get only one selection in Currency
slicer i.e.
 
Capture1.PNG
it should only show Group for multiple selections
 
if there i single selection then it should show both group local .