<?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: Carry Last Value/Running Total Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810526#M664724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking into this further I think this will definitely need to be in an expression.&amp;nbsp; Your solution works but if I, for example, want to only look at Key B/Rule X it will show Days 1-4 even though this particular Key/Rule should only show days 1-2.&amp;nbsp; Let me know if you need any further clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 16:28:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-05T16:28:22Z</dc:date>
    <item>
      <title>Carry Last Value/Running Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810523#M664721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to come up with an expression that will ultimately give me the Total column in Table B below.&amp;nbsp; I have a large data set that contains the fields Day, Key, Rule, and Sales.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The Total column in Table B is the running total with respect to each Key/Rule.&amp;nbsp; For example, on Day 1 there is 1 Sales value for every combination of Key/Rule.&amp;nbsp; So for Day 1 the Total is simply 100+150+50 = 300.&amp;nbsp; However, on Day 3 there is only a Sales value for 2 of the Key and Rule combinations.&amp;nbsp; The Total for Day 3 is 700+100+10 = 810.&amp;nbsp; The +10 comes from the latest Sales quantity for Key B, Rule X on Day 2.&amp;nbsp; And for Day 4 the Total is 15+700+10: The +700 and +10 are carried from the latest dates for Key A/Rule X and Key B/Rule X respectively.&amp;nbsp; Don't get confused by the Key/Rule relationship... if it's easier you can concatenate these 2 columns to create a unique identifier (i.e. AX, AY, and BX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Table A:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="249" style="width: 349px; height: 227px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;&lt;STRONG&gt;Day&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;STRONG&gt;Rule&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #0000ff;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #0000ff;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #0000ff;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #0000ff;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #339966;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Table B:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="129" style="width: 293px; height: 135px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;&lt;STRONG&gt;Day&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;300 (100+150+50)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;510 (200+300+10)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;810 (700+100+10)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;725 (15+700+10)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 19:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810523#M664721</guid>
      <dc:creator />
      <dc:date>2015-01-02T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Carry Last Value/Running Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810524#M664722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2015 09:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810524#M664722</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-01-03T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Carry Last Value/Running Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810525#M664723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution works.&amp;nbsp; However, is there any way this can be done through a single expression in a chart and not in the script?&amp;nbsp; The reason I ask is because the table that holds this data using your solution is now hundreds of millions of rows.&amp;nbsp; We have thousands of keys and dozens of rules so you can imagine there are many combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810525#M664723</guid>
      <dc:creator />
      <dc:date>2015-01-05T13:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Carry Last Value/Running Total Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810526#M664724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking into this further I think this will definitely need to be in an expression.&amp;nbsp; Your solution works but if I, for example, want to only look at Key B/Rule X it will show Days 1-4 even though this particular Key/Rule should only show days 1-2.&amp;nbsp; Let me know if you need any further clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 16:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Carry-Last-Value-Running-Total-Problem/m-p/810526#M664724</guid>
      <dc:creator />
      <dc:date>2015-01-05T16:28:22Z</dc:date>
    </item>
  </channel>
</rss>

