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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
nok
Helper III
Helper III

RLS based on two email columns

Hi!

I want to create a RLS that's different from the ones I've done before, and I'm experiencing some difficulty. I have a table with two columns (Owner, Creator) containing user emails, as follows:

Value   OwnerCreator
17phill@email.com   john@email.com     
55lisa@email.com  devon@email.com  
46erber@email.com natalie@email.com 

 

I want to create a RLS for this table that checks whether the user has an email address in one of these two columns (Owner or Creator). If so, they can view the data in that row; if not, the dashboard won't display that row. So, for example: if the user phill@email.com opens the dashboard, he will only see the data from the first row, as well as john@email.com, as these two users have the email in one of these two columns for the first row only.


How can I do this?

1 ACCEPTED SOLUTION
Royel
Impactful Individual
Impactful Individual

Hi @nok just create a new role and pest this dax 

[Owner] = USERPRINCIPALNAME() || [Creator] = USERPRINCIPALNAME()

Royel_0-1757796375424.png

 

It will check both if user email is match with Owner or Creator columns then show associated results. 

 

Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

1 REPLY 1
Royel
Impactful Individual
Impactful Individual

Hi @nok just create a new role and pest this dax 

[Owner] = USERPRINCIPALNAME() || [Creator] = USERPRINCIPALNAME()

Royel_0-1757796375424.png

 

It will check both if user email is match with Owner or Creator columns then show associated results. 

 

Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors