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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
nok
Advocate II
Advocate II

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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors