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
Highlighted
Super User IV
Super User IV

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
Highlighted
Super User IV
Super User IV

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
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors