<?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 Section Access - Summary data for all users in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Section-Access-Summary-data-for-all-users/m-p/548111#M204753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with summarizing data within my application that uses section access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have implemented data restrictions based on the users Windows AD account.&amp;nbsp; This is working well.&amp;nbsp; What I would like to do is have each user be able to see our metrics summarized for the entire department compared to their own metric values.&amp;nbsp; I've tried created a summary table that is an extension of the main fact table but that was producing incorrect results.&amp;nbsp; Does anyone have experience with this sort of application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data model looks like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Facts&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Security&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employees&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;MetricDate,&lt;/P&gt;&lt;P&gt;MetricID,&lt;/P&gt;&lt;P&gt;UserID,&lt;/P&gt;&lt;P&gt;EmployeeAD,&lt;/P&gt;&lt;P&gt;Department,&lt;/P&gt;&lt;P&gt;Division,&lt;/P&gt;&lt;P&gt;AppointmentStatus,&lt;/P&gt;&lt;P&gt;NewRegistrationFlag,&lt;/P&gt;&lt;P&gt;ManagerKey,&lt;/P&gt;&lt;P&gt;DirectorKey,&lt;/P&gt;&lt;P&gt;Numerator,&lt;/P&gt;&lt;P&gt;Denominator&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;EmployeeAD,&lt;/P&gt;&lt;P&gt;SECURITYID&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;UserID&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;StartDate&lt;/P&gt;&lt;P&gt;ManagerName&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECURITYID is what drives the security.&amp;nbsp; That field is located in the Section Access table along with the ACCESS and NTNAME fields.&amp;nbsp; Basically I need each user to see a summary of their department (manager level) and organization (director level).&amp;nbsp; I have a key for each of those in the Fact table.&amp;nbsp; I tried creating summary tables for manager level and director level data using the AUTONUMBER function but those results were not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax I used:&lt;/P&gt;&lt;P&gt;AutoNumber(MetricDate&amp;amp;MetricID&amp;amp;ManagerKey&amp;amp;Department&amp;amp;Division&amp;amp;AppointmentStatus&amp;amp;NewRegistrationFlag) as ManagerSumKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I created the key I did this:&lt;/P&gt;&lt;P&gt;ManagerSummary:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagerSumKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Numerator) as ManagerNumerator,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Denominator) as ManagerDenominator&lt;/P&gt;&lt;P&gt;Resident Facts&lt;/P&gt;&lt;P&gt;Group By ManagerSumKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the results of this were not accurate.&amp;nbsp; Any suggestions here would be greatly appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 11:45:54 GMT</pubDate>
    <dc:creator>phcaptjim</dc:creator>
    <dc:date>2013-08-29T11:45:54Z</dc:date>
    <item>
      <title>Section Access - Summary data for all users</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-Summary-data-for-all-users/m-p/548111#M204753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with summarizing data within my application that uses section access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have implemented data restrictions based on the users Windows AD account.&amp;nbsp; This is working well.&amp;nbsp; What I would like to do is have each user be able to see our metrics summarized for the entire department compared to their own metric values.&amp;nbsp; I've tried created a summary table that is an extension of the main fact table but that was producing incorrect results.&amp;nbsp; Does anyone have experience with this sort of application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data model looks like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Facts&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Security&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employees&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;MetricDate,&lt;/P&gt;&lt;P&gt;MetricID,&lt;/P&gt;&lt;P&gt;UserID,&lt;/P&gt;&lt;P&gt;EmployeeAD,&lt;/P&gt;&lt;P&gt;Department,&lt;/P&gt;&lt;P&gt;Division,&lt;/P&gt;&lt;P&gt;AppointmentStatus,&lt;/P&gt;&lt;P&gt;NewRegistrationFlag,&lt;/P&gt;&lt;P&gt;ManagerKey,&lt;/P&gt;&lt;P&gt;DirectorKey,&lt;/P&gt;&lt;P&gt;Numerator,&lt;/P&gt;&lt;P&gt;Denominator&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;EmployeeAD,&lt;/P&gt;&lt;P&gt;SECURITYID&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;UserID&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;StartDate&lt;/P&gt;&lt;P&gt;ManagerName&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECURITYID is what drives the security.&amp;nbsp; That field is located in the Section Access table along with the ACCESS and NTNAME fields.&amp;nbsp; Basically I need each user to see a summary of their department (manager level) and organization (director level).&amp;nbsp; I have a key for each of those in the Fact table.&amp;nbsp; I tried creating summary tables for manager level and director level data using the AUTONUMBER function but those results were not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax I used:&lt;/P&gt;&lt;P&gt;AutoNumber(MetricDate&amp;amp;MetricID&amp;amp;ManagerKey&amp;amp;Department&amp;amp;Division&amp;amp;AppointmentStatus&amp;amp;NewRegistrationFlag) as ManagerSumKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I created the key I did this:&lt;/P&gt;&lt;P&gt;ManagerSummary:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ManagerSumKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Numerator) as ManagerNumerator,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Denominator) as ManagerDenominator&lt;/P&gt;&lt;P&gt;Resident Facts&lt;/P&gt;&lt;P&gt;Group By ManagerSumKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the results of this were not accurate.&amp;nbsp; Any suggestions here would be greatly appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-Summary-data-for-all-users/m-p/548111#M204753</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2013-08-29T11:45:54Z</dc:date>
    </item>
  </channel>
</rss>

