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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
df123445
Helper II
Helper II

filter data based on user email

I would like to show only the data related to the viewer email, from what I read around it should be feasable in Power BI, 

however I can't find a way.

 

I have already all the data in my data set, with 2 kind of users, employees and DMs, I would like to show different data (even in different pages) 

 

EMP CODEEMP AREAEMP EMAILDM EMAIL
123AAAEMP1@EMAIL.COMDM1@EMAIL.COM
456BBBEMP2@EMAIL.COMDM1@EMAIL.COM

 

EMP AREA connects this table to all my other data (1:many relationships)

 

Anyone could help?

Thanks in advance 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @df123445 ,

 

 

As @Greg_Deckler said, to verify that your configured rls is in effect, just select view as. The reference is below:

vkongfanfmsft_0-1712300530209.png

vkongfanfmsft_1-1712300548867.png

vkongfanfmsft_2-1712300562578.png

vkongfanfmsft_3-1712300642745.png

vkongfanfmsft_4-1712300659291.png

Best Regards,
Adamk Kong

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi  @df123445 ,

 

 

As @Greg_Deckler said, to verify that your configured rls is in effect, just select view as. The reference is below:

vkongfanfmsft_0-1712300530209.png

vkongfanfmsft_1-1712300548867.png

vkongfanfmsft_2-1712300562578.png

vkongfanfmsft_3-1712300642745.png

vkongfanfmsft_4-1712300659291.png

Best Regards,
Adamk Kong

 

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

Greg_Deckler
Community Champion
Community Champion

@df123445 Yes, this is done by creating an RLS rule on the table and using USERPRINCIPALNAME such as:

[EMAIL] = USERPRINCIPALNAME()



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Many thanks!

I've done the following and seems to work

df123445_0-1712223976948.png

 

But is there any way to test this? 

I've tried "View as" but whatever I select the data doesn't seem to be filtered 

 

@df123445 So when viewing as, you need to select the role and then "Other user" and type in the email address of the other user who you want to impersonate.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors