<?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 line total at header level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150719#M28695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. I have tried entering what you said (I had already tried this), and it returns the total of all of the po_lines in the table. I guess I want to do a group by po_header_id, but I'm not sure where to do the group by...&lt;/P&gt;&lt;P&gt;I should also maybe mention that I am creating a straight table which can fast change to a pivot table.&lt;/P&gt;&lt;P&gt;To clarify, the query in SQL is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SELECT h.SEGMENT1 PO_NUM, SUM(l.UNIT_PRICE * l.QUANTITY)&lt;BR /&gt;FROM po_headers_all h, po_lines_all l&lt;BR /&gt;WHERE h.PO_HEADER_ID = l.PO_HEADER_ID&lt;BR /&gt;GROUP BY h.SEGMENT1&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 19:22:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-30T19:22:29Z</dc:date>
    <item>
      <title>line total at header level</title>
      <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150717#M28693</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'm very new to this and learning as I go along, so please be patient with me [:)]&lt;/P&gt;&lt;P&gt;I have 2 tables, po_headers and po_lines. In po_lines I have line_qty and line_price from which I have created a new field, line_total. What I need is a total of all the lines at header level. I am on Qlikview version 8.2, and I am literally at the beginning of what is going to be a very steep learning curve!&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction... please&lt;/P&gt;&lt;P&gt;Thank you for reading&lt;/P&gt;&lt;P&gt;p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 18:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150717#M28693</guid>
      <dc:creator />
      <dc:date>2009-07-30T18:00:15Z</dc:date>
    </item>
    <item>
      <title>line total at header level</title>
      <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150718#M28694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P:&lt;/P&gt;&lt;P&gt;All you need to do it write this code in title box of chart properties/general tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=sum(total (fieldname) )&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 18:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150718#M28694</guid>
      <dc:creator />
      <dc:date>2009-07-30T18:11:40Z</dc:date>
    </item>
    <item>
      <title>line total at header level</title>
      <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150719#M28695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. I have tried entering what you said (I had already tried this), and it returns the total of all of the po_lines in the table. I guess I want to do a group by po_header_id, but I'm not sure where to do the group by...&lt;/P&gt;&lt;P&gt;I should also maybe mention that I am creating a straight table which can fast change to a pivot table.&lt;/P&gt;&lt;P&gt;To clarify, the query in SQL is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SELECT h.SEGMENT1 PO_NUM, SUM(l.UNIT_PRICE * l.QUANTITY)&lt;BR /&gt;FROM po_headers_all h, po_lines_all l&lt;BR /&gt;WHERE h.PO_HEADER_ID = l.PO_HEADER_ID&lt;BR /&gt;GROUP BY h.SEGMENT1&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for your time&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 19:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150719#M28695</guid>
      <dc:creator />
      <dc:date>2009-07-30T19:22:29Z</dc:date>
    </item>
    <item>
      <title>line total at header level</title>
      <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150720#M28696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the sounds of it, you want something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum (TOTAL &amp;lt;po_header_id&amp;gt; line_total)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The field in the &amp;lt;&amp;gt; will give the total by that field. In this case, it will give the sum for each po_header_id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 21:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150720#M28696</guid>
      <dc:creator />
      <dc:date>2009-07-30T21:26:02Z</dc:date>
    </item>
    <item>
      <title>line total at header level</title>
      <link>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150721#M28697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your reply, I did try it and found the following error ...&lt;/P&gt;&lt;P style="PADDING-LEFT:30px;"&gt;&lt;EM&gt;//Error in calculated dimension&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have managed to get around this by adding the following to my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;tmpPO_LINES_ALL:&lt;BR /&gt;Load PO_HEADER_ID,&lt;BR /&gt; sum(UNIT_PRICE * QUANTITY) as PO_TOTAL&lt;BR /&gt;from PO_LINES_ALL.qvd (qvd) group by PO_HEADER_ID;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for your help guys,&lt;/P&gt;&lt;P&gt;P &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 22:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-total-at-header-level/m-p/150721#M28697</guid>
      <dc:creator />
      <dc:date>2009-08-06T22:39:20Z</dc:date>
    </item>
  </channel>
</rss>

