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
happy30
Frequent Visitor

DAX Expression in Manage Roles

Hi Team,

 

I want to know if we can use "SEARCH" funtion like SQL "A%" in DAX expression in Manage roles. If yes, can anyone please assist me in this use case:
There is one filter with "Full Names" on dashboard and based on any one selection from filter, their relevant data is appearing on the next visual on the same dashboard for assessment purposes. We want to assign full names starting from A to F be assigned to 1 role and G to P to another role and Q to Z to another role. Please help in getting this dax expression in manage role.

 

Thanks

Happy

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the Manage roles and View as in the attached pbix file.

 

Jihwan_Kim_0-1664779032305.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the Manage roles and View as in the attached pbix file.

 

Jihwan_Kim_0-1664779032305.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi Jihwan,

Thank you so much!

 

The Solution worked. Can I please confirm one more thing in this syntax, if this LEFT function will filter only uppercase A, B, C or it can filter both uppercase or lowercase i.e it is case insensitive.

Hi,

Thank you for your message.

It is not case sensitive.

If your datamodel needs to be case sensitive, I suggest having an index column or grouping column in Power Query Editor, and then use DAX formula in Manage roles.

I hope it helps.

Thank you.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.

Top Solution Authors