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
saranp780
Helper III
Helper III

How to assign the filter not exact match to manage role

I have a list of user like this.

 

UserCost
JVAS012000$
JVAS023500$
JVAS035500$
JVAS045000$
JVAS052000$
JVAS062500$
KVAS013200$
KVAS024400$
VVAS012900$
VVAS024000$
VVAS035500$

 

I want to set the filter to role management because I don't want to let people from other departments that I also share my report to see the cost at my department. My requirement is let the user see the only cost of their department such as "JVAS" can display only their cost disable to see "KA and VV" cost.

 

I have tried to put [User Name] = "JVAS"  but when I swap to view role nothing happens. How can I do?

 

Power bi filter.jpg

 

My license is Power BI Pro.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Right now your filter says that the entire cost code has to be "JVAS".  Instead you want to is only check the left 4 characters and see if they equal "JVAS"

 

https://docs.microsoft.com/en-us/dax/left-function-dax

 

Should be something like LEFT([YourColumn], 4) = "JVAS"

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Right now your filter says that the entire cost code has to be "JVAS".  Instead you want to is only check the left 4 characters and see if they equal "JVAS"

 

https://docs.microsoft.com/en-us/dax/left-function-dax

 

Should be something like LEFT([YourColumn], 4) = "JVAS"

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.