<?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: Set analysis with initial data reduction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527091#M196998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please upload an example &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 11:26:33 GMT</pubDate>
    <dc:creator>Yousef_Amarneh</dc:creator>
    <dc:date>2013-12-04T11:26:33Z</dc:date>
    <item>
      <title>Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527090#M196997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to apply a set of charts with set analysis data. My intent is to show some gauges with different perspectives of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem begins when by the access control, the initial data reduction reduces data for the other perspectives and all gauges show the same information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 10:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527090#M196997</guid>
      <dc:creator />
      <dc:date>2013-12-04T10:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527091#M196998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please upload an example &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527091#M196998</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2013-12-04T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527092#M196999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yousef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So.. I had an access section at my document limiting data to users by initial reduction like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, NTNAME, PASSWORD, GROUP, GROUP1, GROUP2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADMIN, foo\bar, *, ADM, ADM, ADM&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ADMIN' as ACCESS,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'foo\' &amp;amp; upper(trim(USU_LOGIN)) as NTNAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '*'&amp;nbsp; as PASSWORD,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(upper(trim(USU_KIND)) = 'SALESMAN', upper(trim(USU_LOGIN)), 'ADM') as GROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(upper(trim(USU_KIND)) = 'INSPECTOR', upper(trim(USU_LOGIN)), 'ADM') as GROUP1, &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(upper(trim(USU_KIND)) = 'MANAGER', upper(trim(USU_LOGIN)), 'ADM') as GROUP2&lt;/P&gt;&lt;P&gt;FROM [..\TRA\REF\Users.QVD] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STAR IS * ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALESMAN_ACCESS:&lt;/P&gt;&lt;P&gt;LOAD upper(trim(USU_LOGIN)) as GROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp; USU_SALESMANCOD as SALESMAN_CODE&lt;/P&gt;&lt;P&gt;FROM [..\TRA\REF\Users.QVD] (qvd)&lt;/P&gt;&lt;P&gt;Where upper(trim(USU_KIND)) = 'SALESMAN';&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP, SALESMAN_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADM, *&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSPECTOR_ACCESS:&lt;/P&gt;&lt;P&gt;LOAD upper(trim(USU_LOGIN)) as GROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp; USU_INSPECTORCOD as INSPECTOR_CODE&lt;/P&gt;&lt;P&gt;FROM [..\TRA\REF\Users.QVD] (qvd)&lt;/P&gt;&lt;P&gt;Where upper(trim(USU_KIND)) = 'INSPECTOR';&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP1, INSPECTOR_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADM, *&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANAGER_ACCESS:&lt;/P&gt;&lt;P&gt;LOAD upper(trim(USU_LOGIN)) as GROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp; USU_MANAGERCOD as MANAGER_CODE&lt;/P&gt;&lt;P&gt;FROM [..\TRA\REF\Users.QVD] (qvd)&lt;/P&gt;&lt;P&gt;Where upper(trim(USU_KIND)) = 'MANAGER';&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP2, MANAGER_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADM, *&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This section with initial data reduction limits and works properly in what data the respective users can see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At few weeks, we have the necessity to set some gauges with analysis. So I created some variables with set analysis expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sales vs planning for entire business I ignore all managers, inspectors and salesman dimensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUSINESS_SALES = (sum({$&amp;lt;MANAGER_CODE=,INSPECTOR_CODE=,SALESMAN_CODE=&amp;gt;} SALES_AMOUNT) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; / &lt;/SPAN&gt;sum({$&amp;lt;MANAGER_CODE=,INSPECTOR_CODE=,SALESMAN_CODE=&amp;gt;} SALES_PLANNED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sales vs planning for managers I set to ignore Inspector and salesman dimensions, and set all possibilities to the manager selected dimension;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANAGER_SALES = &lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;INSPECTOR_CODE=,SALESMAN_CODE=,MANAGER_CODE=P(MANAGER_CODE)&amp;gt;} SALES_AMOUNT) &lt;SPAN style="font-size: 10pt;"&gt; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;INSPECTOR_CODE=,SALESMAN_CODE=,MANAGER_CODE=P(MANAGER_CODE)&amp;gt;} SALES_PLANNED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sales vs planning for inspectors, I set to ignore Manager and Salesman dimensions, ant set all possibilities to the inspector selected dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSPECTOR_SALES = &lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;INSPECTOR_CODE=P(INSPECTOR_CODE),SALESMAN_CODE=,MANAGER_CODE=&amp;gt;} SALES_AMOUNT) &lt;SPAN style="font-size: 10pt;"&gt; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;INSPECTOR_CODE=P(INSPECTOR_CODE),SALESMAN_CODE=,MANAGER_CODE=&amp;gt;} SALES_PLANNED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally for the salesman sales vs planning, I set to ignore both manager and inspector dimensions and set all possibilities to the salesman selected dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALESMAN_SALES = &lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;INSPECTOR_CODE=,SALESMAN_CODE=P(SALESMAN_CODE),MANAGER_CODE=&amp;gt;} SALES_AMOUNT) &lt;SPAN style="font-size: 10pt;"&gt; / &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;INSPECTOR_CODE=,SALESMAN_CODE=P(SALESMAN_CODE),MANAGER_CODE=&amp;gt;}&lt;/P&gt;&lt;P&gt;SALES_PLANNED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those variables when set to Gauge charts and executed in manager access shows exactly what they have to show. The problem occurs when a salesman, for example, access the document. The initial data reduction limits data and all gauges shows the salesman result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some idea how can I solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527092#M196999</guid>
      <dc:creator />
      <dc:date>2013-12-04T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527093#M197000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure that you checked these check boxes ? this is the document settings window&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49964_Untitled.png" style="width: 620px; height: 488px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527093#M197000</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2013-12-04T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527094#M197001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeap, both are checked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527094#M197001</guid>
      <dc:creator />
      <dc:date>2013-12-04T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527095#M197002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh my, Oh my, Oh My!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a lack of comprehension, the answer jumps above my screen!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignoring the GROUP access dimension too at all variables my problem it´s finally solved!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much Yousef!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527095#M197002</guid>
      <dc:creator />
      <dc:date>2013-12-04T12:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with initial data reduction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527096#M197003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the previous thread do no works properly. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bu the good news are that I found the solution! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing that I did was tell to Qlikview do not reduce my data (red) and do the initial selection by section access (green)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="50107" alt="first.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50107_first.png" style="width: 620px; height: 505px;" /&gt;&lt;/P&gt;&lt;P&gt;After to do that I set "On open Triggers" at document properties, triggers tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set all my section fields to blocked at open document&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="50114" alt="second.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50114_second.png" style="width: 620px; height: 438px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, the users cannot change their pre selected access dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I hide the section dimension fields like above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="50115" alt="third.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50115_third.png" /&gt;&lt;/P&gt;&lt;P&gt;Setting the HidePreffix like any char that you like, and then setting the section permissions fields to the previous preffix this fields will be hide at your selections;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Voilà!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same behavior, with no data reduction and now My Set analysis expressions can be done! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-initial-data-reduction/m-p/527096#M197003</guid>
      <dc:creator />
      <dc:date>2013-12-06T10:14:33Z</dc:date>
    </item>
  </channel>
</rss>

