<?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 Re: Calculate cumulative value in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982998#M335468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the what data you have &amp;amp; what is the output you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you need to use Peek &amp;amp; Previous functions to do the cumulative values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qlikcommunity.com/thread/181718"&gt;https://www.qlikcommunity.com/thread/181718&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qlikcommunity.com/thread/138528" title="https://www.qlikcommunity.com/thread/138528"&gt;https://www.qlikcommunity.com/thread/138528&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 10:59:15 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-11-12T10:59:15Z</dc:date>
    <item>
      <title>Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982996#M335466</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;I need to calculate a value like "= sum(x) / cumulative sum of y"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only find cumulative expression based on "above()" function, which doesn't work in this case. I also tried invisible helper column, but this messes up the axes scaling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best approach to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982996#M335466</guid>
      <dc:creator />
      <dc:date>2015-11-12T10:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982997#M335467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go through following threads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2787"&gt;Accumulative Sums&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/87683"&gt;Cumulative sum in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/163229"&gt;accumulative sum?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/175632"&gt;Accumulative sum for two dimensions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982997#M335467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982998#M335468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the what data you have &amp;amp; what is the output you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you need to use Peek &amp;amp; Previous functions to do the cumulative values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qlikcommunity.com/thread/181718"&gt;https://www.qlikcommunity.com/thread/181718&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qlikcommunity.com/thread/138528" title="https://www.qlikcommunity.com/thread/138528"&gt;https://www.qlikcommunity.com/thread/138528&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982998#M335468</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-12T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982999#M335469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be if you can share a sample, someone here can help you get a better answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 11:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/982999#M335469</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-12T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983000#M335470</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;Like Kush has mentioned, in a normal case like this i would be looking to add a running total field in my script using the peek and previous functions, but not knowing anything about the data I couldn't say if this would be useful in your case.&lt;/P&gt;&lt;P&gt;So like Sunny has said a sample would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983000#M335470</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-12T14:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983001#M335471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably as already said, if you give other informations, it is more simple to help.&lt;/P&gt;&lt;P&gt;Meanwhile I think you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(x)/RangeSum(above(Sum(y),0, RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it can be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 15:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983001#M335471</guid>
      <dc:creator>simotrab</dc:creator>
      <dc:date>2015-11-12T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cumulative value in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983002#M335472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out I had a pretty simple error in my expression that took a while to spot&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;RangeSum(Above(sum(x), 0, RowNo()))&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;I had &lt;STRONG&gt;RangeSum(Above(sum(x)), 0, RowNo())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The results were different of course, and I only spotted it when working on an example for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-cumulative-value-in-expression/m-p/983002#M335472</guid>
      <dc:creator />
      <dc:date>2015-11-13T07:16:11Z</dc:date>
    </item>
  </channel>
</rss>

