Forum Discussion

nhintl19's avatar
nhintl19
Regular Visitor
7 years ago

Using row level security with multiple item columns

Hello,

 

I am needing to implement row level security that pulls an email/username from a sql server table column. The column can hold multiple usernames.

 

What I need is a DAX expression that looks at the column and finds the currently logged in user to display the table rows in which they are listed in the username column. I am not sure if the FIND or SEARCH functions would work, I have not been able to find anything online that directly pertains to this issue. The standard "[ColumnName] = Username()" expression does not work as it can't analyze the rows with multiple managers only those with a single manager.

 

 

User story-

We have a sql table that stores items for approval (this solution is just showing status, no approval workflow). Each row in the table is labeled with an Office location (city). Each office has one or more managers and each row can have multiple offices.

 

User Actions-

1. Manager logs into PowerBI

2. Manager sees all rows they are listed on

 

 

3 Replies