<?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: Using aggregation funuctions in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346098#M128034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;As an addition to this.. if all you are requesting are aggregation expression results, no group by or dimension fields are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Data_Range:&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;LOAD&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Date) AS Earliest_Data_Date&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Max(Date) AS Latest_Data_Date&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;RESIDENT Fact_Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 21:03:16 GMT</pubDate>
    <dc:creator>evan_kurowski</dc:creator>
    <dc:date>2014-04-15T21:03:16Z</dc:date>
    <item>
      <title>Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346094#M128030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using sum and count functions in my script, but it gives me error like invalid functions. So i just want to know is,&amp;nbsp; can use use these functions in script and if yes then can some one share some syntax of&amp;nbsp; using them with an if statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 12:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346094#M128030</guid>
      <dc:creator />
      <dc:date>2012-05-10T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346095#M128031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can, but you need to do a group by with a resident table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 13:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346095#M128031</guid>
      <dc:creator />
      <dc:date>2012-05-10T13:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346096#M128032</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;Elaborating a bit on what Marc aptly suggests, the script should look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;AllData_Temp:&lt;/P&gt;&lt;P&gt;LOAD Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Discount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewCustomer&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd); // or whatever other data source here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Sum and Count when NewCustomer = 1&lt;/P&gt;&lt;P&gt;AggregatedData:&lt;/P&gt;&lt;P&gt;LOAD Country, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(NewCustomer = 1, Value, 0)) AS CountryValue,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(NewCustomer = 1, Discount, 0)) AS CountryDiscount&lt;/P&gt;&lt;P&gt;RESIDENT AllData_Temp&lt;/P&gt;&lt;P&gt;GROUP BY Country;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE AllData_Temp;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 14:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346096#M128032</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-10T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346097#M128033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly. Please mark it as answers so others can benefit....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346097#M128033</guid>
      <dc:creator />
      <dc:date>2013-04-23T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346098#M128034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;As an addition to this.. if all you are requesting are aggregation expression results, no group by or dimension fields are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Data_Range:&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;LOAD&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Date) AS Earliest_Data_Date&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Max(Date) AS Latest_Data_Date&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #3d3d3d; font-variant: normal; letter-spacing: normal; line-height: 19.5px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;RESIDENT Fact_Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 21:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346098#M128034</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-04-15T21:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregation funuctions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346099#M128035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;The post on this thread from Evan Kurowski was accidentally. In order to restore points to all participants I have copied and reinserted this comment. Thanks for your patience!&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/61601" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;"Script Execution Progress" window hangs&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 21:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregation-funuctions-in-Script/m-p/346099#M128035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T21:03:57Z</dc:date>
    </item>
  </channel>
</rss>

