<?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: Multilevel RLS with userprincipalname in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769996#M3636</link>
    <description>&lt;P&gt;Thanks for your quick response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly where I got stuck: Emp 1 in your use can see Emps 2 &amp;amp; 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But because Emp 4 reports to Emp 2 who in turn reports to Emp 1, I want Emp 1 to be able to see figures for Emp 4 as well. Kind of like a waterfall RLS from the top node to the most bottom node in that chain for Emp 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bare&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 15:22:53 GMT</pubDate>
    <dc:creator>Bare</dc:creator>
    <dc:date>2019-08-19T15:22:53Z</dc:date>
    <item>
      <title>Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769287#M3614</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help with pointing me in the right direction towards extending RLS beyond what I'm allowed to view?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, I have the following structure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now I was able to set up RLS for a user to view hers and immediate direct employee reporting to her (for eample Emp B can view Emp B, Emp C &amp;amp; Emp D). I achieved this with an OR statement using 'userprincipalname()' in the 'Manage Roles' section (employee ID = userprincipalname() || manager ID = userprincipalname() or the employee dimension table. Works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Challenge:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My challenge is, still using Emp B example, I want to be able to view next levels as well. That is, to be able to view results of Emp E, Emp F &amp;amp; Emp G via drill through if I so wish (?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the question is, is this even possible with plain vanilla RLS? In the employee dimension table I have created columns using the PATH functionalities believing therein may be the answer but I'm stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a nutshell, as an employee being able to view data at my level &amp;amp; further down the hierarchy chain from my level. Is there another way other than RLS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;Many thanks for your time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bare&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS I couldn't attach a sample file. Happy to do so if I figure out how&amp;nbsp;:smileyembarrassed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 22:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769287#M3614</guid>
      <dc:creator>Bare</dc:creator>
      <dc:date>2019-08-18T22:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769620#M3621</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need a table with unique employees and their email/login. This will be the starting point of the RLS filter;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emp1 | emp1@company.com&lt;/P&gt;&lt;P&gt;Emp2 | emp2@company.com&amp;nbsp;&lt;BR /&gt;Emp3 | emp3@company.com&lt;BR /&gt;Emp4 | emp4@company.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second table you need is a table with employees and their children, or parents and all employees they have access too;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emp1 | Emp1&lt;/P&gt;&lt;P&gt;Emp1 | Emp2&lt;/P&gt;&lt;P&gt;Emp1 | Emp3&lt;/P&gt;&lt;P&gt;Emp2 | Emp3&lt;BR /&gt;Emp2 | Emp4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, Emp1 will filter the second table and only filter out Emp1, Emp2 and Emp3. No access to Emp4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last table is your transaction table with sales or whatever, and this will be connected to table 2 based on employee;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019-01-01 | Emp2 | 50 Sales&lt;/P&gt;&lt;P&gt;2019-02-02 | Emp4 | 100 Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, Emp1, will only see a total number of 50 sales, since there is no access to the second row of the transaction table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps to model your data in the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emp1 |&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769620#M3621</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-08-19T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769996#M3636</link>
      <description>&lt;P&gt;Thanks for your quick response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly where I got stuck: Emp 1 in your use can see Emps 2 &amp;amp; 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But because Emp 4 reports to Emp 2 who in turn reports to Emp 1, I want Emp 1 to be able to see figures for Emp 4 as well. Kind of like a waterfall RLS from the top node to the most bottom node in that chain for Emp 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bare&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:22:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/769996#M3636</guid>
      <dc:creator>Bare</dc:creator>
      <dc:date>2019-08-19T15:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/770004#M3637</link>
      <description>So why dont you just add a row with;&lt;BR /&gt;&lt;BR /&gt;Emp1 | Emp4&lt;BR /&gt;&lt;BR /&gt;In that case you have what you need right?&lt;BR /&gt;&lt;BR /&gt;You just have to store your table with parents and childs different, without level. Just 2 columns with a parents and child.</description>
      <pubDate>Mon, 19 Aug 2019 15:37:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/770004#M3637</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-08-19T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/770253#M3651</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;&amp;nbsp; It's a good idea worth trying. I was avoiding any manual maintenance (the employee file comes from a separate system) that I didn't think of this. I'll simply carve out a 2 column solution with Power Query and let you know how it goes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 21:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/770253#M3651</guid>
      <dc:creator>Bare</dc:creator>
      <dc:date>2019-08-19T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel RLS with userprincipalname</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/808264#M5081</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;I wanted to share update (and solution) on this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By accident I came across a solution the fits nicely to what I was looking for. I found it in a post from Radacad:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi" target="_blank"&gt;https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, many thanks for helping out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multilevel-RLS-with-userprincipalname/m-p/808264#M5081</guid>
      <dc:creator>Bare</dc:creator>
      <dc:date>2019-10-02T18:31:42Z</dc:date>
    </item>
  </channel>
</rss>

