<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DAX command to consider multiple =USERPRINCIPALNAME values in same column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1296723#M22387</link>
    <description>&lt;P&gt;We have a single table that we're using currently to set the RLS / DAX statement against. It is working great.&lt;/P&gt;&lt;P&gt;Email = UserPrincipalName()&amp;nbsp; &amp;nbsp;, very straightforward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 15:18:36 GMT</pubDate>
    <dc:creator>cdavisUser</dc:creator>
    <dc:date>2020-08-14T15:18:36Z</dc:date>
    <item>
      <title>DAX command to consider multiple =USERPRINCIPALNAME values in same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1296723#M22387</link>
      <description>&lt;P&gt;We have a single table that we're using currently to set the RLS / DAX statement against. It is working great.&lt;/P&gt;&lt;P&gt;Email = UserPrincipalName()&amp;nbsp; &amp;nbsp;, very straightforward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 15:18:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1296723#M22387</guid>
      <dc:creator>cdavisUser</dc:creator>
      <dc:date>2020-08-14T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command to consider multiple =USERPRINCIPALNAME values in same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1296851#M22389</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251541" data-lia-user-login="cdavisUser" class="lia-mention lia-mention-user"&gt;cdavisUser&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Not very clear on the need. See RLS groups can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=oxYQ2GGefrs" target="_blank"&gt;https://www.youtube.com/watch?v=oxYQ2GGefrs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 16:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1296851#M22389</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-14T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command to consider multiple =USERPRINCIPALNAME values in same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1297962#M22420</link>
      <description>&lt;P&gt;Your single table is the right approach. But it doesn't mean each of your users has to appear only once in it. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 12:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1297962#M22420</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-08-15T12:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command to consider multiple =USERPRINCIPALNAME values in same column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1298256#M22437</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251541" data-lia-user-login="cdavisUser" class="lia-mention lia-mention-user"&gt;cdavisUser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that your data is similar to below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="56.8px"&gt;Store&lt;/TD&gt;
&lt;TD width="240px"&gt;Email&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="56.8px"&gt;Store1&lt;/TD&gt;
&lt;TD width="240px"&gt;john@abc.com;tom@abc.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="56.8px"&gt;Store2&lt;/TD&gt;
&lt;TD width="240px"&gt;mat@abc.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="56.8px"&gt;Store3&lt;/TD&gt;
&lt;TD width="240px"&gt;neel@abc.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="56.8px"&gt;Store4&lt;/TD&gt;
&lt;TD width="240px"&gt;richard@abc.com;jack@abc.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you could try below DAX in the RLS window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;VAR __email = USERPRINCIPALNAME()
VAR __condition =
    IF ( CONTAINSSTRING ( 'Table'[Email], __email ), TRUE (), FALSE () )
RETURN
    __condition&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditornandukrishnavs_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditornandukrishnavs_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 17:45:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-to-consider-multiple-USERPRINCIPALNAME-values-in/m-p/1298256#M22437</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-08-15T17:45:36Z</dc:date>
    </item>
  </channel>
</rss>

