<?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 Re: Need help with DAX RLS filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668072#M34069</link>
    <description>&lt;P&gt;That is indeed a problem. What's the reason for that setup?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 00:11:02 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-02-16T00:11:02Z</dc:date>
    <item>
      <title>Need help with DAX RLS filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1666401#M34018</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help. I know I sound like a noob...but, I would like to filter one table with values from another table. I am setting up RLS that filters the tables based on the current user (Power BI Embedded into an app)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables Groups and UserHasGroups&lt;/P&gt;&lt;P&gt;Groups&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;GROUP_NAME&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UserHasGroups&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;USER_ID&lt;/TD&gt;&lt;TD&gt;GROUP_ID&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UserHasGroups[GROUP_ID] = Groups[ID].&lt;/P&gt;&lt;P&gt;In the Roles, I have a DAX filter that filters the UserHasGroups to only display the groups for the current user:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; [USER_ID]=
            LOOKUPVALUE(
                USER[ID],
                USER[USERNAME],
                USERNAME()
            )
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I would like to accomplish is to thereafter filter the Groups table to only include IDs that exists in the filtered UserHasGroups table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1666401#M34018</guid>
      <dc:creator>DesNaidoo</dc:creator>
      <dc:date>2021-02-15T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX RLS filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1667880#M34059</link>
      <description>&lt;P&gt;1. please do not use USERNAME(), it behaves differently on the desktop and in the service. Use USERPRINCIPALNAME()&lt;/P&gt;
&lt;P&gt;2. Normally this type of RLS is implemented through the data model (ie the UserHasGroups table sits upstream from the Groups table and filters it automatically).&amp;nbsp; Is that something you can consider?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1667880#M34059</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-15T20:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX RLS filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668011#M34068</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;for your reply&lt;BR /&gt;I will consider using the&amp;nbsp;&lt;SPAN&gt;USERPRINCIPALNAME().&lt;BR /&gt;The problem is, I have bridge tables and&amp;nbsp;UserHasGroups is sitting on the many side of the relationship.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 23:21:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668011#M34068</guid>
      <dc:creator>DesNaidoo</dc:creator>
      <dc:date>2021-02-15T23:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX RLS filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668072#M34069</link>
      <description>&lt;P&gt;That is indeed a problem. What's the reason for that setup?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 00:11:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668072#M34069</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-16T00:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX RLS filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668377#M34080</link>
      <description>&lt;P&gt;Its sure is. Quite a complex design that had to accomodate for method of provisioning entities in our App.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 05:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-RLS-filter/m-p/1668377#M34080</guid>
      <dc:creator>DesNaidoo</dc:creator>
      <dc:date>2021-02-16T05:32:05Z</dc:date>
    </item>
  </channel>
</rss>

