<?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 Re: Section Access - union multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357635#M702701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use allways two rows for each user:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;star is *;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;USERID,RegionReduction,TRegionReduction&lt;/P&gt;&lt;P&gt;ADMIN,*,*&lt;/P&gt;&lt;P&gt;USER1,Illinois,*&lt;/P&gt;&lt;P&gt;USER1,*,OH/Northeast&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 11:35:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-19T11:35:32Z</dc:date>
    <item>
      <title>Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357634#M702700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application where I need to set up Section Access to limit a user to seeing only the region that he is assigned, but also other regions that he may have opportunities to develop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means I need to use multiple fields in the Section Access setup, but I need them to produce a UNION with each other, rather than the INTERSECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heres' my Section Access script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, USERID, PASSWORD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADMIN, ADMIN, ADMIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, USER1, U1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;star is *;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;USERID,RegionReduction,TRegionReduction&lt;/P&gt;&lt;P&gt;ADMIN,*,*&lt;/P&gt;&lt;P&gt;USER1,Illinois,OH/Northeast&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GrowerList:&lt;/P&gt;&lt;P&gt;LOAD GWR_ACCT_ID as [Account ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GWR_FIPS_CODE as [FIPS Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Proposed_2012_Region_Code as [Geo. Region Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Proposed_2012_Region_Name as [Geo. Region Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MKT_YR as [Market Year], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRAND as Brand, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CROP as Crop,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BRAND='HUBNER','OH/Northeast',(if(BRAND='LEWIS','MO/KS/CO','Illinois'))) as [Transaction Region],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SumOfUNITS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Proposed_2012_Region_Name as RegionReduction, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BRAND='HUBNER','OH/Northeast',(if(BRAND='LEWIS','MO/KS/CO','Illinois'))) as TRegionReduction&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;Q&gt;&lt;/Q&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loaded, the above rsults in only one row, with 'RegionReduction' = 'Illinois' and TRegionReduction' = 'OH/Northeast'&amp;nbsp; THis is as expected, but not what I need. What I need is for it to return all rows that have 'Illinois' in 'RegionReduction' as well as all rows that have 'OH/Northeast' in 'TRegionReduction'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the QVW. Use 'ADMIN' as the ID &amp;amp; PW. 'USER1 &amp;amp; 'U1' is the regular userid/pw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 18:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357634#M702700</guid>
      <dc:creator />
      <dc:date>2012-07-18T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357635#M702701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use allways two rows for each user:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;star is *;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;USERID,RegionReduction,TRegionReduction&lt;/P&gt;&lt;P&gt;ADMIN,*,*&lt;/P&gt;&lt;P&gt;USER1,Illinois,*&lt;/P&gt;&lt;P&gt;USER1,*,OH/Northeast&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 11:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357635#M702701</guid>
      <dc:creator />
      <dc:date>2012-07-19T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357636#M702702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, but I've already tried that. It gives me no rows for USER1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 13:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357636#M702702</guid>
      <dc:creator />
      <dc:date>2012-07-19T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357637#M702703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how big are your user and Region/TRegion sets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 07:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357637#M702703</guid>
      <dc:creator />
      <dc:date>2012-07-20T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357638#M702704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not very big. 20-30 distinct rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 13:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357638#M702704</guid>
      <dc:creator />
      <dc:date>2012-07-20T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357639#M702705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks like the only way it to make a key field on GrowerList&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RegionReduction&amp;amp;'-'&amp;amp;TRegionReduction as Link&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then make a smart loop creating Link from all the listed values (both RegionReduction and TRegionReduction) on the Secction Access area&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 11:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357639#M702705</guid>
      <dc:creator />
      <dc:date>2012-07-23T11:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357640#M702706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the first part of your solution making as cobined field in GrowerList, but not sure what you mean by a 'smart loop'...could you explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 14:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357640#M702706</guid>
      <dc:creator />
      <dc:date>2012-07-24T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access - union multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357641#M702707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i mean if you dont want to paste "by hand" each permition (access) like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="242.77777767181396" style="width: 201.77777767181396px; border: 1px solid #000000; height: 213.77777767181396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;user&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;dimension&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Illinois - OHWEST&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Illinois - Nevada&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Illinois - altalta&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it it quite dumn and cuse a lot of mistakes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead if that you can do smart loop reading your previous access table (as it looks at the begining)&lt;/P&gt;&lt;P&gt; i mean &lt;/P&gt;&lt;P&gt;- if it read &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12.222222328186035px; background-color: #eef4f9;"&gt;RegionReduction&lt;/SPAN&gt;- it create all the possible links with T&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12.222222328186035px; background-color: #eef4f9;"&gt;RegionReduction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- if it read T&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12.222222328186035px; background-color: #eef4f9;"&gt;RegionReduction &lt;/SPAN&gt;it create all the links with &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12.222222328186035px; background-color: #eef4f9;"&gt;RegionReduction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats why i call it "smart loop" (i think it shouldn't be difficult but i call it "smart loop" &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt; ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 15:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-union-multiple-fields/m-p/357641#M702707</guid>
      <dc:creator />
      <dc:date>2012-07-24T15:23:20Z</dc:date>
    </item>
  </channel>
</rss>

