<?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 can apply SUM in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329174#M1183963</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;Is possible to have the SUM function in the script , if so can you please give an example , I want to sum a numeric fiield for the records which have the same value in 3&amp;nbsp; alpha fileds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 15:01:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-18T15:01:09Z</dc:date>
    <item>
      <title>How can apply SUM in the script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329174#M1183963</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;Is possible to have the SUM function in the script , if so can you please give an example , I want to sum a numeric fiield for the records which have the same value in 3&amp;nbsp; alpha fileds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 15:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329174#M1183963</guid>
      <dc:creator />
      <dc:date>2011-11-18T15:01:09Z</dc:date>
    </item>
    <item>
      <title>How can apply SUM in the script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329175#M1183964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there - typically it is better not to sum in the load script, as QlikView can make light works of aggregating many many rows at display time.&amp;nbsp; If you do wish to aggregate in the load it will be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value1) as Value1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value2) as Value2, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value3) as Value3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [Spreadsheet.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, header is 4 lines, table is Sheet1$)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GROUP BY Line, Action;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note it is the &lt;STRONG&gt;GROUP BY&lt;/STRONG&gt; at the end that is doing the grouping, and as you assume in your post the &lt;STRONG&gt;SUM &lt;/STRONG&gt;that does the aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is slightly different with different data sources - if you have problems post back with details of where your data is coming from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 16:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329175#M1183964</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-11-18T16:29:45Z</dc:date>
    </item>
    <item>
      <title>How can apply SUM in the script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329176#M1183965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Steve Dark wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...typically it is better not to sum in the load script, as QlikView can make light works of aggregating many many rows at display time...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Quoted for emphasis.&amp;nbsp; It MAY make sense to aggregate during the script, but it usually does not.&amp;nbsp; There is usually a better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 21:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-apply-SUM-in-the-script/m-p/329176#M1183965</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-18T21:37:43Z</dc:date>
    </item>
  </channel>
</rss>

