<?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 Multiple 'Set Variable' in actions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044422#M935479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do a pareto analysis on the Sales value (80%) of the top x customers.&lt;/P&gt;&lt;P&gt;The problem is the following:&lt;/P&gt;&lt;P&gt;I want to show how many of how many customers make up the 80% sales.&amp;nbsp; eg:.(49 of 728 customers selected (6.7%) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach was:&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the actions tab of the button;&lt;/P&gt;&lt;P&gt;- set variable vCntCustomers = count (distinct Customers)&lt;/P&gt;&lt;P&gt;- Pareto Select&lt;/P&gt;&lt;P&gt;- set variable vCnt CustomerSelected &lt;SPAN style="font-size: 13.3333px;"&gt;= count (distinct Customers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(to store the number of customers before the pareto)&lt;/P&gt;&lt;P&gt;I learned this does not work because all variables are set at the same time.&lt;/P&gt;&lt;P&gt;I cannot use "all" because the pareto has to work within a selection made by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be a better approach to achive this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 13:06:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-16T13:06:57Z</dc:date>
    <item>
      <title>Multiple 'Set Variable' in actions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044422#M935479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do a pareto analysis on the Sales value (80%) of the top x customers.&lt;/P&gt;&lt;P&gt;The problem is the following:&lt;/P&gt;&lt;P&gt;I want to show how many of how many customers make up the 80% sales.&amp;nbsp; eg:.(49 of 728 customers selected (6.7%) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach was:&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the actions tab of the button;&lt;/P&gt;&lt;P&gt;- set variable vCntCustomers = count (distinct Customers)&lt;/P&gt;&lt;P&gt;- Pareto Select&lt;/P&gt;&lt;P&gt;- set variable vCnt CustomerSelected &lt;SPAN style="font-size: 13.3333px;"&gt;= count (distinct Customers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(to store the number of customers before the pareto)&lt;/P&gt;&lt;P&gt;I learned this does not work because all variables are set at the same time.&lt;/P&gt;&lt;P&gt;I cannot use "all" because the pareto has to work within a selection made by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be a better approach to achive this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044422#M935479</guid>
      <dc:creator />
      <dc:date>2016-02-16T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple 'Set Variable' in actions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044423#M935480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try an approach as shown here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9072"&gt;So How Many Customers Make Up Most of Your Sales?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very similar to your approach, but using an alternate state for the pareto select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the count percentage calculation would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count({AlternateState} DISTINCT Customer) / &lt;SPAN style="font-size: 13.3333px;"&gt;Count({$} DISTINCT Customer) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044423#M935480</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-16T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple 'Set Variable' in actions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044424#M935481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick response&lt;/P&gt;&lt;P&gt;It solved my problem &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>Tue, 16 Feb 2016 14:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Variable-in-actions/m-p/1044424#M935481</guid>
      <dc:creator />
      <dc:date>2016-02-16T14:45:33Z</dc:date>
    </item>
  </channel>
</rss>

