cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Manage roles

Dear all,

 

I am trying to define/ manage different roles.

As default, Power BI states e.g. [Country Name] = "Italy".

 

Is it also possible to replace the "=" with a character for "contains"? 🤔

 

My internet research was w/o results...😐

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Manage roles

Hi @Orstenpowers ,

 

Remove the "=".

SEARCH ( "Italy", [Country Name], 1, BLANK () ) <> BLANK ()

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

6 REPLIES 6
Highlighted
Super User IV
Super User IV

Re: Manage roles

You can use any DAX expression


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Helper III
Helper III

Re: Manage roles

Hi Greg,

 

Thx for your feedback!

 

But which expression do I have to use to state at the "Manage roles" section to define e.g. "Country" contains "Nether"???

Highlighted
Community Support
Community Support

Re: Manage roles

Hi @Orstenpowers ,

 

Please create a role like that.

=SEARCH ( "Italy", [Country Name], 1, BLANK () ) <> BLANK ()

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Highlighted
Helper III
Helper III

Re: Manage roles

Dear v-frfei-msft,

 

Thank you for your hint, but I get following message from Power BI: 🤔

Screenshot_001.JPG

Highlighted
Community Support
Community Support

Re: Manage roles

Hi @Orstenpowers ,

 

Remove the "=".

SEARCH ( "Italy", [Country Name], 1, BLANK () ) <> BLANK ()

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Highlighted
Helper III
Helper III

Re: Manage roles

Hi,

 

it works, great.

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors