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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
df123445
Helper I
Helper I

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
v-kongfanf-msft
Community Support
Community Support

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
v-kongfanf-msft
Community Support
Community Support

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
Super User
Super User

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

[EMAIL] = USERPRINCIPALNAME()


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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