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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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()


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!:
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.


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

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.