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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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