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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.