<?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: Running Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804049#M665730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dim: Date, Key&lt;/P&gt;&lt;P&gt;Expr:If(Aggr(RowNo(),Key)=1,Residual,If(Not IsNull(Aggr(RowNo(),Key)),Residual + Above(TOTAL Residual),Above(TOTAL Column(1))))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="147075.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74420_147075.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Dec 2014 16:36:35 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-12-30T16:36:35Z</dc:date>
    <item>
      <title>Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804046#M665727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set similar to the below table.&amp;nbsp; For every 'Date' and 'Key' I have a 'Residual' value.&amp;nbsp; This residual value will be the same for each key.&amp;nbsp; However, I am having some issues with calculating the 'ResidualTotal' field.&amp;nbsp; This field should be a running total of the residual values for each key.&amp;nbsp; I know how to incorporate the rangesum/above function (i.e. rangesum(above(sum(residual),0,rowno()))) but I do not know how to implement it in this scenario when I do not want it by row number and I cannot replace rowno() with 'Date' and 'Key'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="199" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 359px; height: 201px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 41pt;" width="55"&gt;&lt;SPAN style="color: #000000;"&gt;Key&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 62pt;" width="82"&gt;&lt;SPAN style="color: #000000;"&gt;Residual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 72pt;" width="96"&gt;&lt;SPAN style="color: #000000;"&gt;ResidualTotal&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/1/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/2/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/3/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/4/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/5/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;110&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/6/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;110&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl64" height="20" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN style="color: #000000;"&gt;1/7/2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #000000;"&gt;110&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 13:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804046#M665727</guid>
      <dc:creator />
      <dc:date>2014-12-30T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804047#M665728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there, hope this helps you , find attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;RESIDUAL:&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, Key, Residual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/2014, A, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/2/2014, A, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/3/2014, A, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/4/2014, A, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2014, B, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/6/2014, B, 90&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT_TOTAL_STAGE1:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Load distinct Key,rangesum(Residual,0)&lt;/TD&gt;&lt;TD&gt;as&lt;/TD&gt;&lt;TD&gt;Residual&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Resident RESIDUAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT_TOTAL_STAGE2:&lt;/P&gt;&lt;P&gt;Load Key,&lt;/P&gt;&lt;P&gt;if(RowNo()=1,Residual,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Residual+rangesum(Peek('ResidualTotal'),0) )&lt;/TD&gt;&lt;TD&gt;as&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ResidualTotal&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Resident RESIDENT_TOTAL_STAGE1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;DROP Table RESIDENT_TOTAL_STAGE1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 15:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804047#M665728</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-12-30T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804048#M665729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Prem.&amp;nbsp; This method definitely works but would you know how to put this in an expression instead of the script?&amp;nbsp; I eventually want to chart this and the running total will be dynamic depending on which keys the user selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 15:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804048#M665729</guid>
      <dc:creator />
      <dc:date>2014-12-30T15:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804049#M665730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dim: Date, Key&lt;/P&gt;&lt;P&gt;Expr:If(Aggr(RowNo(),Key)=1,Residual,If(Not IsNull(Aggr(RowNo(),Key)),Residual + Above(TOTAL Residual),Above(TOTAL Column(1))))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="147075.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74420_147075.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 16:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804049#M665730</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-30T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804050#M665731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expr&lt;/P&gt;&lt;P&gt;If(Aggr(RowNo(),Key),Residual+ Alt(Above(TOTAL Residual),0),Above(TOTAL Column(1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 16:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804050#M665731</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-30T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804051#M665732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above(TOTAL aggr(max(Residual),Key),0,9999))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 17:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804051#M665732</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-30T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804052#M665733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 18:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-Total/m-p/804052#M665733</guid>
      <dc:creator>iktrayanov</dc:creator>
      <dc:date>2014-12-30T18:36:19Z</dc:date>
    </item>
  </channel>
</rss>

