<?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 RLS-&amp;gt; Dynamic RLS  on hierachy for different colum of a dim table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3539319#M136019</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am hoping find help to my current issue. I have got to implement a Dynamic RLS&amp;nbsp; for hierachy over multiple columns of a dimension table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The requirement&amp;nbsp; consist of implementing an hierachy restriction as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Besides, an employee/manager can have access to a top level of the hierachy and have his staff accessing only few part of a&amp;nbsp; level (including the belonging part of the below level). =&amp;gt; hope this illustraction is clear enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am having to deal with the blisted below tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;RLS user_Group Table&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;Bridge Table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dimestion table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 15:00:01 GMT</pubDate>
    <dc:creator>TaxiDriveDax</dc:creator>
    <dc:date>2023-11-17T15:00:01Z</dc:date>
    <item>
      <title>RLS-&gt; Dynamic RLS  on hierachy for different colum of a dim table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3539319#M136019</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am hoping find help to my current issue. I have got to implement a Dynamic RLS&amp;nbsp; for hierachy over multiple columns of a dimension table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The requirement&amp;nbsp; consist of implementing an hierachy restriction as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Besides, an employee/manager can have access to a top level of the hierachy and have his staff accessing only few part of a&amp;nbsp; level (including the belonging part of the below level). =&amp;gt; hope this illustraction is clear enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am having to deal with the blisted below tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;RLS user_Group Table&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;Bridge Table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dimestion table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3539319#M136019</guid>
      <dc:creator>TaxiDriveDax</dc:creator>
      <dc:date>2023-11-17T15:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: RLS-&gt; Dynamic RLS  on hierachy for different colum of a dim table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3542214#M136150</link>
      <description>&lt;P&gt;The tables you mentioned are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;RLS user_Group Table&lt;/LI&gt;&lt;LI&gt;Bridge Table&lt;/LI&gt;&lt;LI&gt;Dimension Table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;From your description, it seems like you want to implement a dynamic RLS based on a hierarchy, where an employee/manager can have access to a top level of the hierarchy, and their staff can access only a portion of a level and the belonging part of the below level.&lt;/P&gt;&lt;P&gt;Here is a general approach you can take:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Define the Hierarchy in the Dimension Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure your dimension table contains the necessary hierarchy columns. In your case, it seems to be the columns "EmployeeID," "ManagerID," and "GrandManagerID" (as per the image names you provided).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Relationships:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create relationships between the hierarchy columns in the Dimension Table. This helps in navigating the hierarchy.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create RLS user_Group Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your RLS user_Group Table, define the access levels for each user or group based on the hierarchy. You might have columns like "UserID," "AccessLevel," "EmployeeID," etc.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Bridge Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Bridge Table is used to link the RLS user_Group Table with the Dimension Table. It contains columns like "UserID," "EmployeeID," etc., to establish relationships.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Define DAX Expressions for RLS:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use DAX expressions in the RLS settings to filter data based on the user's access level and hierarchy. The DAX expressions will use the relationships established in the Bridge Table.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's an example DAX expression for RLS in Power BI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;'YourDimensionTable',&lt;BR /&gt;USERELATIONSHIP('BridgeTable'[UserID], 'RLS user_Group Table'[UserID]),&lt;BR /&gt;'YourDimensionTable'[EmployeeID] IN VALUES('RLS user_Group Table'[EmployeeID])&lt;BR /&gt;|| 'YourDimensionTable'[ManagerID] IN VALUES('RLS user_Group Table'[EmployeeID])&lt;BR /&gt;|| 'YourDimensionTable'[GrandManagerID] IN VALUES('RLS user_Group Table'[EmployeeID])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This DAX expression checks if the user has access to the specified EmployeeID, ManagerID, or GrandManagerID based on the relationships established through the Bridge Table.&lt;/P&gt;&lt;P&gt;Remember to replace 'YourDimensionTable', 'BridgeTable', and 'RLS user_Group Table' with the actual names of your tables.&lt;/P&gt;&lt;P&gt;Adjust the DAX expression based on your specific hierarchy and table structures. It's important to test the RLS rules thoroughly to ensure they provide the desired level of security.&lt;/P&gt;&lt;P&gt;If you encounter specific issues or have more details to provide, feel free to share them for more targeted assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3542214#M136150</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-11-20T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: RLS-&gt; Dynamic RLS  on hierachy for different colum of a dim table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3544612#M136288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your proposition. I like to implemented it just that i still a bit more clarification as in if i should create a physical relationship between the Dim and the bridge table. also, you've not mentioned where to add the dax (which RLS table). then a confusing point is when you've stated i should use a calculated table to insert into my RLS choice. May you please guide toward which colum and table would carry the DAX.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 12:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-gt-Dynamic-RLS-on-hierachy-for-different-colum-of-a-dim/m-p/3544612#M136288</guid>
      <dc:creator>TaxiDriveDax</dc:creator>
      <dc:date>2023-11-21T12:01:17Z</dc:date>
    </item>
  </channel>
</rss>

