<?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 Chart with total sum and running sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287407#M496038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your database Sales are accumulated values YTD and costs are monthy values ? &lt;/P&gt;&lt;P&gt; The difference to be calculated is over accumulated values or monthly values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Pablo Labbe&lt;/P&gt;&lt;P&gt;Qlikview Consultant&lt;/P&gt;&lt;P&gt;@Vision Gestão &amp;amp; Tecnologia&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.visiongi.com.br"&gt;http://www.visiongi.com.br&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 16:49:52 GMT</pubDate>
    <dc:creator>pablolabbe</dc:creator>
    <dc:date>2012-01-18T16:49:52Z</dc:date>
    <item>
      <title>Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287406#M496037</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 am facing a strange problem in a chart: I need to show the difference between sales and costs, by month. Now the strange problem is that sales are running sum while costs are puntual per month, so I think that I have to calculate the running sum of costs by month, but month is the dimension of my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here an example of the database:&lt;/P&gt;&lt;P&gt;SALES&lt;/P&gt;&lt;P&gt;JAN 1000&lt;/P&gt;&lt;P&gt;FEB 2500 (1000+1500)&lt;/P&gt;&lt;P&gt;MAR 3400 (1000+1500+900)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COSTS&lt;/P&gt;&lt;P&gt;JAN 800&lt;/P&gt;&lt;P&gt;FEB 1100&lt;/P&gt;&lt;P&gt;MAR 600&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is driving me mad, thank you in advance for spending time on this, and sorry for my poor english.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlo A. Babini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287406#M496037</guid>
      <dc:creator />
      <dc:date>2012-01-18T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287407#M496038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your database Sales are accumulated values YTD and costs are monthy values ? &lt;/P&gt;&lt;P&gt; The difference to be calculated is over accumulated values or monthly values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Pablo Labbe&lt;/P&gt;&lt;P&gt;Qlikview Consultant&lt;/P&gt;&lt;P&gt;@Vision Gestão &amp;amp; Tecnologia&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.visiongi.com.br"&gt;http://www.visiongi.com.br&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287407#M496038</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2012-01-18T16:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287408#M496039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your load script when looking at the Sales data na dassuming its in calendar order try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales as Sales_Cummulative,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales-previous(Sales) as Sales_This_Month&lt;/P&gt;&lt;P&gt;From dbo.Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should give you a month by month Sales value as well as the running cumulative total thus enabling a simple Sales_This_Month - Costs expression in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you can always use the previous() function in a Straight Table to achieve the same effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;P&gt;@QlikviewBI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287408#M496039</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2012-01-18T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287409#M496040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pablo,&lt;/P&gt;&lt;P&gt; yes, In my database Sales are accumulated values YTD and costs are monthy values, and the difference to be calculated is over accumulated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Carlo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 09:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287409#M496040</guid>
      <dc:creator />
      <dc:date>2012-01-19T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287410#M496041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you&amp;nbsp; need to accumulate costs. The best is to do this calculation at script level. Using the solution posed by Matthew, but&amp;nbsp; accumulating Costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You ca use the peek and rangesum command to do this.&amp;nbsp; Check this post &lt;A _jive_internal="true" href="https://community.qlik.com/message/110458"&gt;http://community.qlik.com/message/110458&lt;/A&gt; where Miguel Angel Baeyens explains how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pablo Labbe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 11:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287410#M496041</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2012-01-19T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Chart with total sum and running sum</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287411#M496042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this will help me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, you really helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Carlo A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-total-sum-and-running-sum/m-p/287411#M496042</guid>
      <dc:creator />
      <dc:date>2012-01-19T13:15:05Z</dc:date>
    </item>
  </channel>
</rss>

