Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
We have a single table that we're using currently to set the RLS / DAX statement against. It is working great.
Email = UserPrincipalName() , very straightforward.
Use case now is allowing multiple users to see the same data. I've read through many of the existing workarounds for this. Is there a way to use Contains or another command that would leave our current schema in tact? Ideally would like to have multiple user names in the same field separated by comma or other delimiter.
Thanks for any insight.
Assuming that your data is similar to below.
Store | |
Store1 | john@abc.com;tom@abc.com |
Store2 | mat@abc.com |
Store3 | neel@abc.com |
Store4 | richard@abc.com;jack@abc.com |
Then you could try below DAX in the RLS window.
VAR __email = USERPRINCIPALNAME()
VAR __condition =
IF ( CONTAINSSTRING ( 'Table'[Email], __email ), TRUE (), FALSE () )
RETURN
__condition
Your single table is the right approach. But it doesn't mean each of your users has to appear only once in it. 😀
Not very clear on the need. See RLS groups can help
https://www.youtube.com/watch?v=oxYQ2GGefrs
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
20 | |
18 | |
16 | |
13 | |
10 |