<?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: full cummulated sum script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008251#M652224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have forgot about the arcticles.&lt;/P&gt;&lt;P&gt;There are many articles, does it impair with this function?&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;RangeSum(Peek(NewValue), Value)&lt;/STRONG&gt; as NewValue;" didnt work: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;RangeSum(Peek(NewValue), Quantity) as NewValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97156_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 10:42:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-27T10:42:35Z</dc:date>
    <item>
      <title>full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008249#M652222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;how can I use the cummulative sum in script like in expression:&lt;/P&gt;&lt;P&gt;rangesum(above(Sum(Quantity),0,rowno()))&lt;/P&gt;&lt;P&gt;I need the cummulated sum as a fix number, that can calulated forward or backward ..&lt;/P&gt;&lt;P&gt;I tried with Rangesum(Quantity,peek('Quantity',-1) )as AccuSumScript; but it doesn't work&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97149_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008249#M652222</guid>
      <dc:creator />
      <dc:date>2015-08-27T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008250#M652223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Dim,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Value,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;RangeSum(Peek(NewValue), Value)&lt;/STRONG&gt; as NewValue;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Dim, Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;A, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;B, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;C, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;D, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;E, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008250#M652223</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-08-27T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008251#M652224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have forgot about the arcticles.&lt;/P&gt;&lt;P&gt;There are many articles, does it impair with this function?&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;STRONG&gt;RangeSum(Peek(NewValue), Value)&lt;/STRONG&gt; as NewValue;" didnt work: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;RangeSum(Peek(NewValue), Quantity) as NewValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97156_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008251#M652224</guid>
      <dc:creator />
      <dc:date>2015-08-27T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008252#M652225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, in that case, it would a bit different. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Dim,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Value,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;If(Dim=Peek(Dim),&lt;/STRONG&gt;RangeSum(Peek(NewValue), Value), Value) as NewValue;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Dim, Value&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;1, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;1, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;1, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;2, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;2, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;One thing you have to make sure that - source data is &lt;STRONG&gt;properly sorted&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008252#M652225</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-08-27T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008253#M652226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its order by Date ASC;&lt;/P&gt;&lt;P&gt;but I dont get the same values as in the expression&lt;/P&gt;&lt;P&gt;acutally I ve got many articleNo, dates -&amp;nbsp; on each date there are increase values and decrease values = quantity.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;article&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;quantity&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;cummulated quantity&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01.01.2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Increase +10, Decrease - 5 =5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02.01.2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Increase +10, Decrease - 5 =5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02.02.2012&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Increase +10, Decrease - 5 =5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;a2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(articleNo=Peek(articleNo),RangeSum(Peek(NewValue), Quantity), Quantity) as NewValue // = cummulated quantity &lt;/P&gt;&lt;P&gt;didnt work , also instead of articleNo -&amp;gt; Date .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008253#M652226</guid>
      <dc:creator />
      <dc:date>2015-08-27T11:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008254#M652227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to share a sample data in excel and insert a column with expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008254#M652227</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-08-27T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008255#M652228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to first order by articleNo and then by Date. Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By articleNo, Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008255#M652228</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-27T11:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008256#M652229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I want is, to get the same accumulated values, which are in the expressions, into the script.&lt;/P&gt;&lt;P&gt;Because, if I select the year = 2014 of the date, it depends on the very first value, which is from 2007 ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008256#M652229</guid>
      <dc:creator />
      <dc:date>2015-08-27T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008257#M652230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier to work with raw data rather than already aggregated data that you have shared. Can you share few 100 lines of raw data??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008257#M652230</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-27T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008258#M652231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here we go &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008258#M652231</guid>
      <dc:creator />
      <dc:date>2015-08-27T12:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008259#M652232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD Articleno,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //StockValueAccuExp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Articleno=Peek(Articleno),RangeSum(Peek(StockValueAccuExp), "sum[stockValue (aktual)])"), "sum[stockValue (aktual)])") as StockValueAccuExp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sum[stockValue (aktual)])",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //QuantityAccuExp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Articleno=Peek(Articleno),RangeSum(Peek(QuantityAccuExp),&amp;nbsp; [sum(Quantity)]),&amp;nbsp; [sum(Quantity)]) as QuantityAccuExp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sum(Quantity)]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, header is 2 lines, table is Sheet1$);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008259#M652232</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-08-27T12:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: full cummulated sum script</title>
      <link>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008260#M652233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I get various values on each day, one of them is the right one. (excel result)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because that in the sum(quantity) and sum(stockvalue ) from the excel, is sum into 1 value of each day..&lt;/P&gt;&lt;P&gt;but how can I sum that in script?&lt;/P&gt;&lt;P&gt;If I use sum(Quantity) or sum(stockvalue) in each if-conditions, = invalid expression error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 13:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/full-cummulated-sum-script/m-p/1008260#M652233</guid>
      <dc:creator />
      <dc:date>2015-08-27T13:11:33Z</dc:date>
    </item>
  </channel>
</rss>

