Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nhintl19
Regular Visitor

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 3
v-cherch-msft
Employee
Employee

Hi  @nhintl19

 

You may have a look at below articles about Row-level security to check if they could help you.

 

http://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi

https://community.powerbi.com/t5/Community-Blog/Power-BI-Dynamic-Row-Level-Security-Tips-to-get-it-w...

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-cherch-msft

 

While the first link does have some helpful information it would require some changes to our database. I would like to know if it is possible to implement RLS in a method that would function with my current setup first. If it is not possible to implement as I have described I will look into the first link further.

 

Thank you,

nhintl19

Hi!

 

Have you ever found a solution for this one? I also have the same scenario, multiple emails in one column and they need to access the specific row they are listed on.

 

The current solution I have is to edit the data itself in Power Query to split these email addresses to different columns.

 

Appreciate if you could share a solution you found, if any.

Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.