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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.