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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
VGL321
Regular Visitor

RLS- with 2 user Columns data filter dyamically

Hi 
when Email 1- apple login he should see the data, same way Email 2 column's mentioned users also should see the same Apple data. How implement RLS for these scenario.
> what ever the Email 1 user see the data, same way all the users in the Email 2 also should see the same data as Email 1
> Email 1 and Email 2 are from same table 

VGL321_0-1741069484465.png

Thanks

 

2 REPLIES 2
ValtteriN
Super User
Super User

Hi, Try something like this in the dax editor of rls:

[Email1] == USERNAME()  || SEARCH(username(), [Email2], 1, 0) > 0

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




VGL321_0-1741074934295.png

@VA Syntax error when i use the DAX Shared by you . Any help please

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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