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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
barbdash271
Regular Visitor

Implementing Row Level Security Based on Column 1 and 2

Hello!


I want to implement RLS on a single table that takes into account the email address of the person signing in, and shows all the rows that have a matching Record ID as the person signing.  I'm struggling with the second piece.

Picture 1-example data before RLS.

Picture 2- intended result. RLS would identify that Sally has signed on, identify that she's associated with two Record IDs (9379 and 8301), then show all rows that share that ID including other email addresses.

barbdash271_1-1717189396344.png       barbdash271_2-1717189621024.png

 

I tried tackling the first piece which filters by UserPrincipalName but I'm stuck on the matching ID piece.

barbdash271_0-1717189223298.png

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@barbdash271 
I am glad to help you.
Your dax code seems to be miswritten, you should use =
instead of ==
like this:

[KM -Email Address V2] = USERPRINCIPALNAME()

Here is the official documentation about RLS that you can refer to:
Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Make sure you set up RLS correctly in both Power BI Desktop and Power BI Service.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,@barbdash271 
I am glad to help you.
Your dax code seems to be miswritten, you should use =
instead of ==
like this:

[KM -Email Address V2] = USERPRINCIPALNAME()

Here is the official documentation about RLS that you can refer to:
Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Make sure you set up RLS correctly in both Power BI Desktop and Power BI Service.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.




barbdash271
Regular Visitor

@amitchandak

 

Are you able to help?

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.