<?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 Dynamic Row Based Security in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/274575#M1406</link>
    <description>&lt;P&gt;I have been following&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-row-level-security-onprem-ssas-tabular/" target="_blank"&gt;THIS&lt;/A&gt;&amp;nbsp;article on how to setup row based security using passed through credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two identical (duplicates) tables: Employee, and EmployeeSecurity that consist of the following columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ContactID&lt;/LI&gt;&lt;LI&gt;SupervisorID&lt;/LI&gt;&lt;LI&gt;EmployeeNumber&lt;/LI&gt;&lt;LI&gt;FirstName&lt;/LI&gt;&lt;LI&gt;MiddleName&lt;/LI&gt;&lt;LI&gt;LastName&lt;/LI&gt;&lt;LI&gt;ActiveDirectoryUserName&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a relationship setup between&amp;nbsp;&lt;SPAN&gt;EmployeeSecurity.SupervisorID to&amp;nbsp;Employee.ContactID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a Role setup on the tabulear model that contains these to tables or dimensions with read access.&lt;/P&gt;&lt;P&gt;The Row Filter I am using could probably use some fixing but I'm not sure where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=Employee[SupervisorID]=LOOKUPVALUE(EmployeeSecurity[SupervisorID],EmployeeSecurity[ActiveDirectoryUserName],USERNAME())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make it so employees can see their supervisors, and/or supervisors can see their employees.&amp;nbsp; I'm hoping someone sees either what is wrong with my DAX or maybe I'm going about settin up the relationship incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just for functionality practice to prove Dynamic Row Based Security will work for us.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 14:50:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-10T14:50:32Z</dc:date>
    <item>
      <title>Dynamic Row Based Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/274575#M1406</link>
      <description>&lt;P&gt;I have been following&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-row-level-security-onprem-ssas-tabular/" target="_blank"&gt;THIS&lt;/A&gt;&amp;nbsp;article on how to setup row based security using passed through credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two identical (duplicates) tables: Employee, and EmployeeSecurity that consist of the following columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ContactID&lt;/LI&gt;&lt;LI&gt;SupervisorID&lt;/LI&gt;&lt;LI&gt;EmployeeNumber&lt;/LI&gt;&lt;LI&gt;FirstName&lt;/LI&gt;&lt;LI&gt;MiddleName&lt;/LI&gt;&lt;LI&gt;LastName&lt;/LI&gt;&lt;LI&gt;ActiveDirectoryUserName&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a relationship setup between&amp;nbsp;&lt;SPAN&gt;EmployeeSecurity.SupervisorID to&amp;nbsp;Employee.ContactID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a Role setup on the tabulear model that contains these to tables or dimensions with read access.&lt;/P&gt;&lt;P&gt;The Row Filter I am using could probably use some fixing but I'm not sure where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=Employee[SupervisorID]=LOOKUPVALUE(EmployeeSecurity[SupervisorID],EmployeeSecurity[ActiveDirectoryUserName],USERNAME())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make it so employees can see their supervisors, and/or supervisors can see their employees.&amp;nbsp; I'm hoping someone sees either what is wrong with my DAX or maybe I'm going about settin up the relationship incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just for functionality practice to prove Dynamic Row Based Security will work for us.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:50:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/274575#M1406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T14:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Row Based Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/276812#M1446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to&amp;nbsp;above tutorial, your DAX filter formula should be:&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;=Employee[SupervisorID]=LOOKUPVALUE(EmployeeSecurity[SupervisorID],EmployeeSecurity[ActiveDirectoryUserName],USERNAME(), EmployeeSecurity[SupervisorID], Employee[SupervisorID])&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuliana Gu&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 08:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/276812#M1446</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2017-10-12T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Row Based Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/277113#M1454</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="14525" data-lia-user-login="v-yulgu-msft" class="lia-mention lia-mention-user"&gt;v-yulgu-msft&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if the problem might be a few things together.&amp;nbsp; Possibly the created relationship with filter direction and a poor understanding of the LOOKUPVALUE DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the changes you suggested the user received no data.&amp;nbsp; I altered the DAX to:&lt;/P&gt;&lt;PRE&gt;=Employee[ContactID]=LOOKUPVALUE(EmployeeSecurity[ContactID],EmployeeSecurity[ActiveDirectoryUserName],USERNAME(), EmployeeSecurity[SupervisorID], Employee[SupervisorID])&lt;/PRE&gt;&lt;P&gt;And now the user sees SOME data but not his/her own records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experiance with this, and if so do you have any documentation, examples I can look at?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dynamic-Row-Based-Security/m-p/277113#M1454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T15:09:58Z</dc:date>
    </item>
  </channel>
</rss>

