<?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: How to use aggregation in the script level - Backend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820251#M289154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GROUP BY clause is your friend here. It may take you some time to figure out exactly how it works, though. An example may help. Assuming you have Orders and OrderLines tables and you want to add the Order Amount to your Orders table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (Orders)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD OrderID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This will be the JOIN field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(OrderLineAmount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Sum the Amounts for all OrderLines of every Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT OrderLines&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY OrderID;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 11:49:06 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-01-20T11:49:06Z</dc:date>
    <item>
      <title>How to use aggregation in the script level - Backend</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820250#M289153</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;I need aggregate the value with respect to each invoice , i have the values in terms of row level data. Kindly suggest how can i implement it in the script part&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sathis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820250#M289153</guid>
      <dc:creator />
      <dc:date>2015-01-20T11:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use aggregation in the script level - Backend</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820251#M289154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GROUP BY clause is your friend here. It may take you some time to figure out exactly how it works, though. An example may help. Assuming you have Orders and OrderLines tables and you want to add the Order Amount to your Orders table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (Orders)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD OrderID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This will be the JOIN field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(OrderLineAmount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Sum the Amounts for all OrderLines of every Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT OrderLines&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY OrderID;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820251#M289154</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-20T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use aggregation in the script level - Backend</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820252#M289155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(value)&lt;/P&gt;&lt;P&gt;from dbtable&lt;/P&gt;&lt;P&gt;group by invoice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820252#M289155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-20T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use aggregation in the script level - Backend</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820253#M289156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i understood how to use the group by Clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Group by Clause Leaners :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;with the above example&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;LEFT JOIN (Orders)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;LOAD OrderID,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This will be the JOIN field&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_Name,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;STRONG&gt;Either Comment or include it in the group by clause &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(OrderLineAmount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Sum the Amounts for all OrderLines of every Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;RESIDENT OrderLines&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;GROUP BY OrderID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If in case a ROW ID column is available in the data pls dont include it in the Group by clause because Row ID is a Distinct Column which does not support Group by Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820253#M289156</guid>
      <dc:creator />
      <dc:date>2015-01-20T14:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use aggregation in the script level - Backend</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820254#M289157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it works for you, please mark a discussion answer as Correct. The blue balloon next to your question in the community overview will turn green. That way, other community visitors that are searching for answers will more easily find and visit your discussion. Thanks.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 16:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggregation-in-the-script-level-Backend/m-p/820254#M289157</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-20T16:09:49Z</dc:date>
    </item>
  </channel>
</rss>

