cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JoeHoover Visitor
Visitor

DAX and Roles

I have a Page level Filter that I would like to convert to row based security using roles. 

 

Is there a way I can find the DAX expression of the Page level filter? 

 

If not, how can I write a DAX expression to filter by Dept. (example: I have a table with everyone's dept, A001, A002, S999, H555..) I want to just include the users from Dept A. 

 

I can use something like this [Department] = "A001" but I have to enter every dept. Is there an expression I can use to include all depts that start with A? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: DAX and Roles

Should just be:

 

LEFT([Department],1) = "A"

 

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

 


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

Proud to be a Datanaut!


1 REPLY 1
Super User
Super User

Re: DAX and Roles

Should just be:

 

LEFT([Department],1) = "A"

 

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

 


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

Proud to be a Datanaut!