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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filter userprincipal name in 'multiple lines of text column' from Sharepoint List

Hello

 

I have a multiple lines of text column containing email ids(could be 5 or 20 or 50 or even more ids) separated by a comma.

I would like to set up a user role so that only those rows are visible to the user which contain the logged in users email id and rest of the rows are hidden. 

 

For example : 

User with email id "test7@test.com" should be able to view only row 2.

 

IDAllEmails (Sharepoint List multiple lines of text column)Data Details
1test1@test.com,test2@test.com,test3@test.com,test4@test.com,test5@test.com,Data1
2test1@test.com,test2@test.com,test3@test.com,test4@test.com,test5@test.com,test6@test.com,test7@test.com,Data2
3test1@test.com,test2@test.com,test4@test.com,test5@test.com,test6@test.com,test15@test.com,test16@test.com,Data3
4test1@test.com,test2@test.com,test4@test.com,test5@test.com,test6@test.com,test15@test.com,test16@test.com,test17@test.com,test31@test.com,test32@test.com,test42@test.com,test43@test.com,test44@test.com,test45@test.com,test46@test.com,Data4
5test1@test.com,test2@test.comData5
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Please try to create RLS like below:

[ID] in SELECTCOLUMNS(FILTER('Table',SEARCH(USERPRINCIPALNAME(),'Table'[AllEmails (Sharepoint List multiple lines of text column)],,0)>0),"ID",'Table'[ID])

Vlianlmsft_0-1637131729310.pngVlianlmsft_1-1637131740418.png

 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Please try to create RLS like below:

[ID] in SELECTCOLUMNS(FILTER('Table',SEARCH(USERPRINCIPALNAME(),'Table'[AllEmails (Sharepoint List multiple lines of text column)],,0)>0),"ID",'Table'[ID])

Vlianlmsft_0-1637131729310.pngVlianlmsft_1-1637131740418.png

 

Anonymous
Not applicable

Hi @amitchandak 

 

I have the reporting dashboard with bar graphs and pie charts.

And would like to limit the data visible based on which user has logged in.

 

I have tried the solution you have shared but i am getting the below error:

 

navanshmahajan_1-1636706243517.png

 

 

navanshmahajan_0-1636706020601.png

 

amitchandak
Super User
Super User

@Anonymous , use text filter

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?src=office&tab=Overview

 

or create measure

 

countrows(filter(Table, search("test7@test.com",Table[all email],,0) >0))

 

And use it with ID

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors
Top Kudoed Authors