<?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 Hi Everyone  Can we use sum function on script level i.e at the time of loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523795#M195670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use sum function on script level i.e at the time of loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 05:36:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-25T05:36:49Z</dc:date>
    <item>
      <title>Hi Everyone  Can we use sum function on script level i.e at the time of loading</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523795#M195670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use sum function on script level i.e at the time of loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523795#M195670</guid>
      <dc:creator />
      <dc:date>2013-10-25T05:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Everyone  Can we use sum function on script level i.e at the time of loading</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523796#M195671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Sum(), Max(),...aggregate functions in script, but you need to group the dimensions.&amp;nbsp; Check below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Dim3) AS Sales&lt;/P&gt;&lt;P&gt;FROM DataSource&lt;/P&gt;&lt;P&gt;GROUP BY Dim1, Dim2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:The fields specified in Load statement must contain in Group by, otherwise you will get error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523796#M195671</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T05:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Everyone  Can we use sum function on script level i.e at the time of loading</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523797#M195672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about Dim3 ,should it also be in Group By ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 05:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523797#M195672</guid>
      <dc:creator />
      <dc:date>2013-10-25T05:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Everyone  Can we use sum function on script level i.e at the time of loading</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523798#M195673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions which are using in Aggregate functions like Sum() need not to be in Group by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523798#M195673</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Everyone  Can we use sum function on script level i.e at the time of loading</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523799#M195674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; b:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;invoiceno,amount,city&lt;/P&gt;&lt;P&gt;1,100,a&lt;/P&gt;&lt;P&gt;2,100,a&lt;/P&gt;&lt;P&gt;3,100,b&lt;/P&gt;&lt;P&gt;4,200,c&lt;/P&gt;&lt;P&gt;5,200,e&lt;/P&gt;&lt;P&gt;6,300,f&lt;/P&gt;&lt;P&gt;2,300,a&lt;/P&gt;&lt;P&gt;]&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD invoiceno,Sum(amount) as newamount Resident b Group by invoiceno ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 06:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Everyone-Can-we-use-sum-function-on-script-level-i-e-at-the/m-p/523799#M195674</guid>
      <dc:creator />
      <dc:date>2013-10-25T06:37:19Z</dc:date>
    </item>
  </channel>
</rss>

