<?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 Aggr function? problem with total value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234221#M85688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure, but you could try:&lt;/P&gt;&lt;P&gt;sum(total &amp;lt;StockCode&amp;gt; ... RowTotalSEK) etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 14:40:13 GMT</pubDate>
    <dc:creator>justinasp</dc:creator>
    <dc:date>2010-02-09T14:40:13Z</dc:date>
    <item>
      <title>Aggr function? problem with total value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234220#M85687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to make a pivot chart where I can present the purchasing value for the recent period, multiplied with the quota between the quantity of the current period and the quantity of the recent period. I want this calculation to be made for every item (StockCode):&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Sum({$&amp;lt;DeliveryYearActual={&lt;B&gt;&lt;I&gt;$(=DeliveryYearActual-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;}RowTotalSEK)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;*(Sum(QtyRecieved)/&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Sum({$&amp;lt;DeliveryYearActual={&lt;B&gt;&lt;I&gt;$(=DeliveryYearActual-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;}QtyRecieved))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this works fine on the item (StockCode) level, however the total value presented in the chart is not correct. I suspect it's because the total value does not calculate the value "per item". I guess I have to use som aggr function, but I cannot make it work.&lt;/P&gt;&lt;P&gt;Anyone knows what to do in order to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rickard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 13:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234220#M85687</guid>
      <dc:creator />
      <dc:date>2010-02-09T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Aggr function? problem with total value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234221#M85688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure, but you could try:&lt;/P&gt;&lt;P&gt;sum(total &amp;lt;StockCode&amp;gt; ... RowTotalSEK) etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234221#M85688</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2010-02-09T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Aggr function? problem with total value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234222#M85689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;rickard wrote:I suspect it's because the total value does not calculate the value "per item".&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Right, the total value does not calculate the value "per item". By default, it applies the chart expression to the entire chart. If instead you want to sum up the rows, then properties -&amp;gt; expressions -&amp;gt; total mode -&amp;gt; sum of rows. Or am I misunderstanding the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 01:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-problem-with-total-value/m-p/234222#M85689</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-10T01:48:11Z</dc:date>
    </item>
  </channel>
</rss>

