<?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: Calculating Cumulative Sums and Incremental values together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146272#M375055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127212_Capture.PNG" style="height: 312px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 09:22:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-08T09:22:23Z</dc:date>
    <item>
      <title>Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146271#M375054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to Qlikview and need help of experienced users about my below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" width="64"&gt;Item&lt;/TD&gt;&lt;TD class="xl90" style="border-left: none;" width="64"&gt;File&lt;/TD&gt;&lt;TD class="xl90" style="border-left: none;" width="64"&gt;Year&lt;/TD&gt;&lt;TD class="xl90" style="border-left: none;" width="64"&gt;Quarter&lt;/TD&gt;&lt;TD class="xl90" style="border-left: none;" width="64"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;101&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;102&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;103&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;104&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;105&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;106&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl90" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;107&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl90" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to calculate the total result with cumulative sums of item A values and incremental value of Item B as per and of quarter of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="194" style="border: 1px solid #000000; width: 697px; height: 139px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2012&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2012&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2012&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2012&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Quarter&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Item A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Item B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Result&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;410&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;705&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1115&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Formula&lt;/TD&gt;&lt;TD&gt;Value of 2012 A1 + sum(B1+B2)&lt;/TD&gt;&lt;TD&gt;Value of A2 + sum(B1+B2+B3)&lt;/TD&gt;&lt;TD&gt;Value of A3 + sum(B1+B2+B3+B4)&lt;/TD&gt;&lt;TD&gt;Value of A4 + sum(B1+B2+B3+B4)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am fine with solutions working over both in load script or as expression. Can someone help me out on this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you very much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 08:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146271#M375054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T08:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146272#M375055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127212_Capture.PNG" style="height: 312px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146272#M375055</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T09:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146273#M375056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD Item,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM table;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;New:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;noconcatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno()=1 or Year&amp;lt;&amp;gt;Previous(Year) or Quarter&amp;lt;&amp;gt;Previous(Quarter),0,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Year=previuos(Year) and Quarter=Previous(Quarter),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(Amount,previous(Amount)),0)) as Accum_AB_1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;resident Data&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by Year,File;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;left join(New)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD Year,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Accum_AB_1) as Accum_AB&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Resident New&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Group by Year,Quarter;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;drop field Accum_AB_1;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;left join(New)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD Year,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno()=1,Amount,rangesum(Amount,peek('Accum_B'))) as Accum_B&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;resident New&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where Item='B'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by Year,Quarter;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;drop table Data;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Create Pivot table&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Dimension :&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Item&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Quarter&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1) Amount-&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Sum(Amount)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2) Result-&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Sum(distinct Accum_AB)+Sum(distinct Accum_B)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Drag and drop the Quarter dimension horizontally&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146273#M375056</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T09:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146274#M375057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys both your solutions are perfectly working for my requirement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146274#M375057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146275#M375058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146275#M375058</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146276#M375059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No offense to &lt;A _jive_internal="true" href="https://community.qlik.com/people/kush141087"&gt;kushal&lt;/A&gt;‌, but you seem to like longer script compared to a smaller script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item, File, Year, Quarter, Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 100, 2012, 1, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 101, 2012, 1, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 102, 2012, 2, 60&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 103, 2012, 2, 250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 104, 2012, 3, 55&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 105, 2012, 3, 300&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 106, 2012, 4, 65&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 107, 2012, 4, 400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Year = Previous(Year) and Item = Previous(Item) and Item = 'B', RangeSum(Amount, Peek('New_Amount')), Amount) as New_Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Year, Item, Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update: &lt;/STRONG&gt;Expression used for getting the desired output:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Item = {'A'}&amp;gt;}Amount) + Sum({&amp;lt;Item = {'B'}&amp;gt;}New_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not have thought that you would not mark my response as correct, but we both are glad that you got what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146276#M375059</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146277#M375060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am using a personal edition and could not see your script and since it was a bit urgent I had to use which one is more conveniently available. Please be sure that your help and effort also appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146277#M375060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146278#M375061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, because I don't want to perform any set analysis or any expression in front end.(Just want to have simple expression) i.e why i used this script. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146278#M375061</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T11:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146279#M375062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally, I would not want to complicate my script in order to avoid set analysis on the front end. But I guess OP disagrees with me. Keeping this discussion aside, what is your opinion on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146279#M375062</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T11:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146280#M375063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's not too complicated I guess &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; I always try to do most of the calculation in script keeping in mind that not to increase loading time and memory usage. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 12:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146280#M375063</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146281#M375064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/219984"&gt;egemenekinci&lt;/A&gt;, further if you get the time then try to implement what sunny has suggested and if you find it more easy and efficient then you can any time mark his answer correct and mine as helpful. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 12:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146281#M375064</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T12:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146282#M375065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree its not complicated, but joins can sometime be painfully slow. So my question is, do we think that Joins are better than using Set Analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 12:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146282#M375065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-08T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146283#M375066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If joins are not performed on large data set &amp;amp; also joins are not performed combined key then join is always efficient as it brings all the relevant dimensions &amp;amp; measures into single table, but at the same time it increases the application size as underlying symbol table size increases. So that all depends on amount of data and requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 12:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146283#M375066</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-08T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146284#M375067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have working with a data around 500K records and actually your solution through join is not so effective... &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌,'s solution works more quicker as expected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 04:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146284#M375067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T04:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Cumulative Sums and Incremental values together</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146285#M375068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/219984"&gt;egemenekinci&lt;/A&gt;‌ you can also mark my answer as helpful if so &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, 09 Jun 2016 06:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Cumulative-Sums-and-Incremental-values-together/m-p/1146285#M375068</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-09T06:35:45Z</dc:date>
    </item>
  </channel>
</rss>

