<?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 on Two Fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723292#M55040</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have two tables. One is a regional level table and other is a rep level table. So basically, the regional level table has no rep data to it at all. But the rep level table has region assigned to each row.&lt;/P&gt;&lt;P&gt;now i have two sheets in my app, one that shows regional numbers and one sheet that shows rep level numbers.&lt;/P&gt;&lt;P&gt;what i want is the following:&lt;/P&gt;&lt;P&gt;if a rep logs in the app:&lt;/P&gt;&lt;P&gt;1. in the rep sheet, he only sees his numbers.&lt;/P&gt;&lt;P&gt;2. in the regional sheet, he sees his entire region.&lt;/P&gt;&lt;P&gt;so if Rep A belong to Eastern Canada, he should only see Eastern Canada's regional numbers as well as Rep A's numbers.&lt;/P&gt;&lt;P&gt;How can i achieve this with section access?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;if you be so kind to suggest something, i'd really appreciate it.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:25:36 GMT</pubDate>
    <dc:creator>waleeed_mahmood</dc:creator>
    <dc:date>2024-11-16T18:25:36Z</dc:date>
    <item>
      <title>Section Access on Two Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723292#M55040</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have two tables. One is a regional level table and other is a rep level table. So basically, the regional level table has no rep data to it at all. But the rep level table has region assigned to each row.&lt;/P&gt;&lt;P&gt;now i have two sheets in my app, one that shows regional numbers and one sheet that shows rep level numbers.&lt;/P&gt;&lt;P&gt;what i want is the following:&lt;/P&gt;&lt;P&gt;if a rep logs in the app:&lt;/P&gt;&lt;P&gt;1. in the rep sheet, he only sees his numbers.&lt;/P&gt;&lt;P&gt;2. in the regional sheet, he sees his entire region.&lt;/P&gt;&lt;P&gt;so if Rep A belong to Eastern Canada, he should only see Eastern Canada's regional numbers as well as Rep A's numbers.&lt;/P&gt;&lt;P&gt;How can i achieve this with section access?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;if you be so kind to suggest something, i'd really appreciate it.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723292#M55040</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2024-11-16T18:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access on Two Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723524#M55065</link>
      <description>&lt;P&gt;If you have two tables, one with rep data and one with region data, this should work straight away.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Henric_Cronström_0-1593523219792.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36576iA1DEC2769AC38E23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Henric_Cronström_0-1593523219792.png" alt="Henric_Cronström_0-1593523219792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just create a Section access with Rep as reducing field, and you will get exactly what you want.&lt;/P&gt;&lt;P&gt;Note that you will then calculate the Region sales from the region table. You cannot use the [Rep Sales] field and accumulate this to region level.&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723524#M55065</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2020-06-30T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access on Two Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723644#M55070</link>
      <description>&lt;P&gt;Hello HIC,&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;&lt;P&gt;I am unable to get both views working at the same time. I have the following data model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waleeed_mahmood_0-1593536603325.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36598i712E5358D984E965/image-size/large?v=v2&amp;amp;px=999" role="button" title="waleeed_mahmood_0-1593536603325.png" alt="waleeed_mahmood_0-1593536603325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a few fields that are similar between the Rep Table(RepActuals) and the Regional Table (FINAL) so naturally i have a synthetic key. Then i have the following in my section access script :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SECTION ACCESS;
[ACCESSTABLE]:
LOAD
    "ACCESS",//USER or ADMIN
    "USERID",//AD001\SALINK
    SALINK//this reduction field is the userID of a Rep
FROM ....
SECTION APPLICATION;
[LINKTABLE]:
LOAD
    SALINK,
    GID //this field exists in the Rep Actual Table and is the ID of a Rep 
FROM....&lt;/LI-CODE&gt;&lt;P&gt;But in this way, i only see the numbers at Rep level and not at Regional level. Could you point out as where i might be going wrong at this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 17:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-Two-Fields/m-p/1723644#M55070</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2020-06-30T17:09:52Z</dc:date>
    </item>
  </channel>
</rss>

