<?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 How to SUM in script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-SUM-in-script/m-p/316456#M116726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Now I make sum in chart expression. But it is slow. So I want to sum in script by 'group by' clouse like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(amount) as aamount &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by year,month, product;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In my layout, I have 3 list box of&amp;nbsp; 'year,month, product' and a chart. I can get the same result in chart when I select EACH list box where ever I make sum, but different deselect any list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default, in qlikview chart summary the result is same when 'select nothing and select all'------------------select nothing = select all&lt;/P&gt;&lt;P&gt;But if I do summay in script 'select nothing &amp;lt;&amp;gt; select all'&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is how can I make 'select nothing = select all' in script summary?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 00:17:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-14T00:17:19Z</dc:date>
    <item>
      <title>How to SUM in script.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-SUM-in-script/m-p/316456#M116726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Now I make sum in chart expression. But it is slow. So I want to sum in script by 'group by' clouse like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(amount) as aamount &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by year,month, product;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In my layout, I have 3 list box of&amp;nbsp; 'year,month, product' and a chart. I can get the same result in chart when I select EACH list box where ever I make sum, but different deselect any list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default, in qlikview chart summary the result is same when 'select nothing and select all'------------------select nothing = select all&lt;/P&gt;&lt;P&gt;But if I do summay in script 'select nothing &amp;lt;&amp;gt; select all'&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is how can I make 'select nothing = select all' in script summary?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 00:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-SUM-in-script/m-p/316456#M116726</guid>
      <dc:creator />
      <dc:date>2011-11-14T00:17:19Z</dc:date>
    </item>
    <item>
      <title>How to SUM in script.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-SUM-in-script/m-p/316457#M116727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I completely understood, but if you used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;sum(amount) as aamount&lt;/P&gt;&lt;P&gt;resident table&lt;/P&gt;&lt;P&gt;group by year,month, product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you will get a data island table with just field aamount, not linked with any other fields. So no selection will affect any aggregation on field aamount. I would suggest linking above table to your other tables e.g. by a surrogate key, a simple one would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;sum(amount) as aamount,&lt;/P&gt;&lt;P&gt;year &amp;amp; month &amp;amp; product as Key&lt;/P&gt;&lt;P&gt;resident table&lt;/P&gt;&lt;P&gt;group by year,month, product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and you need to add the Key also to your table you want to be linked, I assume table 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 00:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-SUM-in-script/m-p/316457#M116727</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-14T00:45:15Z</dc:date>
    </item>
  </channel>
</rss>

