<?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 Calculate Invoice Amount in Invoice Header in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322745#M711317</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;&lt;EM&gt;AuxTotals:&lt;/EM&gt;&lt;BR /&gt;load&lt;BR /&gt;InvoiceID,&lt;BR /&gt;Sum(total InvoiceID Amount) as InvoiceTotal&lt;BR /&gt;resident &lt;EM&gt;InvoiceLines&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by &lt;/EM&gt;InvoiceID&lt;EM&gt; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should solve your problem..use group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 14:46:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-24T14:46:36Z</dc:date>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322741#M711312</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;In the data source, there is no Amount field in the Invoice Header, it is calculated by making a sum of the Sales Lines table "Amount" field.&lt;/P&gt;&lt;P&gt;But I would like to get that Invoice Total in the initial script (I can do it in the charts, but I'd like to have it in the script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any aggregation function I could use for this purpose? Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 09:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322741#M711312</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2011-05-24T09:38:00Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322742#M711313</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you please provide the data file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 09:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322742#M711313</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-24T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322743#M711314</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;you can load the invoice detail, after that create a temporary table with InvoiceID and Sum(amount) and use that table to do a left join with the header table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 09:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322743#M711314</guid>
      <dc:creator>RicardoRamos</dc:creator>
      <dc:date>2011-05-24T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322744#M711315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you. Which function should I use to Sum the total for every InvoiceID? This seems no to be correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AuxTotals:&lt;/EM&gt;&lt;BR /&gt;load&lt;BR /&gt;InvoiceID,&lt;BR /&gt;Sum(total InvoiceID Amount) as InvoiceTotal&lt;BR /&gt;resident &lt;EM&gt;InvoiceLines;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 14:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322744#M711315</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2011-05-24T14:44:28Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322745#M711317</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;&lt;EM&gt;AuxTotals:&lt;/EM&gt;&lt;BR /&gt;load&lt;BR /&gt;InvoiceID,&lt;BR /&gt;Sum(total InvoiceID Amount) as InvoiceTotal&lt;BR /&gt;resident &lt;EM&gt;InvoiceLines&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by &lt;/EM&gt;InvoiceID&lt;EM&gt; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should solve your problem..use group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 14:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322745#M711317</guid>
      <dc:creator />
      <dc:date>2011-05-24T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322746#M711320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an anonymous table in the join and skip creating and dropping the extra table. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (InvoiceHeader)&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;InvoiceID,&lt;BR /&gt;Sum(total InvoiceID Amount) as InvoiceTotal&lt;BR /&gt;resident &lt;EM style="font-size: 12px;"&gt;InvoiceLines&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12px;"&gt;group by &lt;/EM&gt;InvoiceID&lt;EM style="font-size: 12px;"&gt; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12px;"&gt;-&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 16:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322746#M711320</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-05-24T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Calculate Invoice Amount in Invoice Header</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322747#M711322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many thanks to all of you, it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 06:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Invoice-Amount-in-Invoice-Header/m-p/322747#M711322</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2011-05-25T06:25:34Z</dc:date>
    </item>
  </channel>
</rss>

