cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 169 members 1,951 guests
Please welcome our newest community members: