<?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 How to create dynamic path for role level security. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951224#M30459</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to create role level security as per organization structure. I tried doing this using PATH function. However, got stuck in below scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_0-1626070390492.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/550980iC320C18B9BFCBC28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_0-1626070390492.png" alt="nisha_0-1626070390492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In case when Amy login he should only see the data for himself and Lindsay, But in my current development I am getting below output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_1-1626070511420.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/550986i2522A02749D92059/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_1-1626070511420.png" alt="nisha_1-1626070511420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It should not show Reza Rad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am gusseing this is happening because in the PATH column, it generated 1|5|8, How can I create such path which is dynamic. i.e.&lt;/P&gt;&lt;P&gt;if Amy logs in he should get data only for those which are below not for above one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 06:19:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-12T06:19:15Z</dc:date>
    <item>
      <title>How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951224#M30459</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to create role level security as per organization structure. I tried doing this using PATH function. However, got stuck in below scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_0-1626070390492.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/550980iC320C18B9BFCBC28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_0-1626070390492.png" alt="nisha_0-1626070390492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In case when Amy login he should only see the data for himself and Lindsay, But in my current development I am getting below output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_1-1626070511420.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/550986i2522A02749D92059/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_1-1626070511420.png" alt="nisha_1-1626070511420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It should not show Reza Rad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am gusseing this is happening because in the PATH column, it generated 1|5|8, How can I create such path which is dynamic. i.e.&lt;/P&gt;&lt;P&gt;if Amy logs in he should get data only for those which are below not for above one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 06:19:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951224#M30459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T06:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951562#M30466</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the below logic in the RLS.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;VAR _email = USERPRINCIPALNAME()
VAR _id = CALCULATE(SELECTEDVALUE('Table'[ID] ),FILTER('Table',[Email]=_email))
VAR _resultFilter =  PATHCONTAINS([Path],_id)
return _resultFilter&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nandukrishnavs_0-1626078773147.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/551102i4DF48E851A5DD28B/image-size/large?v=v2&amp;amp;px=999" role="button" title="nandukrishnavs_0-1626078773147.png" alt="nandukrishnavs_0-1626078773147.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the attached pbix file.&lt;/P&gt;
&lt;DIV class="UserSignature lia-message-signature"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 20px; border: solid #CCCCCC 1px; background: #fafafa url('/t5/image/serverpage/image-id/245255iBA79BC16F308A2DA/image-size/large/is-moderation-mode/true?v=1.0&amp;amp;px=999') no-repeat right 20px center; background-size: auto 40%;"&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic" size="3"&gt;Nandu Krishna&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;Appreciate with a kudos&lt;/FONT&gt; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;&lt;FONT face="batang,apple gothic" size="4"&gt;Proud to be a Super User!&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 08:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951562#M30466</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2021-07-12T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951711#M30468</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32333"&gt;@nandukrishnavs&lt;/a&gt;&amp;nbsp; Thanks for you response. However, the solution which you provided is the same which I already have. My issue is If Amy logs in Reza Rad should not appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_0-1626080899692.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/551156iE6524EAE5629A21A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_0-1626080899692.png" alt="nisha_0-1626080899692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 09:10:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951711#M30468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T09:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951791#M30470</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Can you share your pbix file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you really require Level 1 in the visual?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 09:34:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951791#M30470</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2021-07-12T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951975#M30474</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32333"&gt;@nandukrishnavs&lt;/a&gt;&amp;nbsp;Yes require the level because needs to create matrix in the dashboard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 10:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951975#M30474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951981#M30475</link>
      <description>&lt;P&gt;How to attach pbix file. Unable to find the icon.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 10:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1951981#M30475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T10:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1952060#M30476</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Can you generalize the logic? Why can't you use Level 2 and Level 3? Then you will not see "Reza Rad" right? Suppose if Reza Rad login what should be the results? If you could provide more examples, we can try.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 11:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1952060#M30476</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2021-07-12T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic path for role level security.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1953602#M30489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like I dont have permission to attached pbix file. However, my requirement is, I have to create a matrix which will have all the levels. For example. In my case I have 3 level. Now issue is whenever Reza and Leila login they will see correct data. However, when Others logins, they will get Level 1 value as well. For example: If Bill login he will see Leila and Mark as well. I dont want to show higher level data. It should filter out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha_0-1626155999375.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/551803iF23538F200E738C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha_0-1626155999375.png" alt="nisha_0-1626155999375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 06:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-dynamic-path-for-role-level-security/m-p/1953602#M30489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-13T06:03:42Z</dc:date>
    </item>
  </channel>
</rss>

