Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tine
New Member

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
v-ljerr-msft
Employee
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.Smiley Happy

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

Regards

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Updated answer in updated PBI versions:

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

 

 

 

v-ljerr-msft
Employee
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.Smiley Happy

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

Regards

Anonymous
Not applicable

It works indeed!

Example of working code:

[Код региона] ="32"||
[Код региона] = "33"||
[Код региона] = "44"||
[Код региона] = "50"||
[Код региона] = "57"||
[Код региона] = "61"||
[Код региона] = "62"

Anonymous
Not applicable

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 .
 
Anonymous
Not applicable

How to use it like

 

[ABC] LIKE "XYZ%"

Anonymous
Not applicable

The same case can work via AND condition.?

Thank you - it works

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.