cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoeHoover Frequent Visitor
Frequent 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

 


I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

View solution in original post

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

 


I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 129 members 1,505 guests
Please welcome our newest community members: