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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ThomasWeppler
Skilled Sharer
Skilled Sharer

Row level security where multiple people can see a row

Hi Power Bi community

I want multiple people to be able to see the same row.

usally I use this DAX: [email] = userprincipalname()
but it will not work if I have multiple e-mails in the colum. Is there a way to achive that?

All help is greatly appriciated.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@ThomasWeppler , Better unpivot, if more than one column has email.

Or use Split by Delimiter to have email in multiple rows, if they in same column separated by Delimiter 

 

Power Query Split Column , Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

View solution in original post

xifeng_L
Solution Supplier
Solution Supplier

Hi @ThomasWeppler ,

 

You can try below expression.

 

FIND(userprincipalname(),[email],1,0)>0

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

View solution in original post

5 REPLIES 5
v-yifanw-msft
Community Support
Community Support

Thank @amitchandak  and @xifeng_L  for their prompt replies.

Hi @ThomasWeppler  ,

May I ask if your problem has been solved. If the above reply was helpful, you may consider marking it as solution. If the problem is not yet solved, please feel free to ask us a question.

 

Best Regards,

Ada Wang

xifeng_L
Solution Supplier
Solution Supplier

Hi @ThomasWeppler ,

 

You can try below expression.

 

FIND(userprincipalname(),[email],1,0)>0

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Thanks for the answer.

It looks like it might work. I will try it out for a bit and get back and accept your suggestion as a solution if it works.

amitchandak
Super User
Super User

@ThomasWeppler , Better unpivot, if more than one column has email.

Or use Split by Delimiter to have email in multiple rows, if they in same column separated by Delimiter 

 

Power Query Split Column , Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

@amitchandak thanks for the fast answer.
My problem is more how I wirte the DAX-code that let me look at row level security for multiple colums.

so let us say that I have
colum 1 = User A

colum 2 = Email[1]

colum 3 = Email[2]

 

How do I wirte a dax code that allow a both the person with Email[1] and Email[2] to see User A?

[Email[1]] = userprincipalname() will not do it.

I hope the question make sense.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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