<?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 Sum order lines amount by order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-order-lines-amount-by-order/m-p/90446#M602224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a file containing the following info&lt;/P&gt;&lt;P&gt;OrderID&lt;/P&gt;&lt;P&gt;OderLineDescription&lt;/P&gt;&lt;P&gt;OrderLineAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to create an additional column in the script that aggregates the sum of all OrderLineAmount per Order ID to get the &lt;STRONG style="font-size: 13.3333px;"&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OderLineDescription&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderLineAmount&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Could you please advise on the syntax?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum(aggr(OrderLineAmount, OrderID)) as &lt;STRONG style="font-size: 13.3333px;"&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Many thanks!&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 10:33:31 GMT</pubDate>
    <dc:creator>agaetisproject</dc:creator>
    <dc:date>2018-09-20T10:33:31Z</dc:date>
    <item>
      <title>Sum order lines amount by order</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-order-lines-amount-by-order/m-p/90446#M602224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a file containing the following info&lt;/P&gt;&lt;P&gt;OrderID&lt;/P&gt;&lt;P&gt;OderLineDescription&lt;/P&gt;&lt;P&gt;OrderLineAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to create an additional column in the script that aggregates the sum of all OrderLineAmount per Order ID to get the &lt;STRONG style="font-size: 13.3333px;"&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OderLineDescription&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;OrderLineAmount&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Could you please advise on the syntax?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum(aggr(OrderLineAmount, OrderID)) as &lt;STRONG style="font-size: 13.3333px;"&gt;TotalOrderAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Many thanks!&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 10:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-order-lines-amount-by-order/m-p/90446#M602224</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2018-09-20T10:33:31Z</dc:date>
    </item>
  </channel>
</rss>

