<?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: Accumulation in the script level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783675#M667989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan and Sergey for your help. You're true lifesavers &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, 20 Nov 2014 03:28:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-20T03:28:41Z</dc:date>
    <item>
      <title>Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783670#M667984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow qlikies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to simulate accumulation function that is available in chart properties but in the script level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Month Year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Region&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Jan-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;North&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Jan-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;East&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Feb-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;North&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Feb-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;South&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Feb-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;East&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New aggregated Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 249px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="74"&gt;Month Year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Region&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="111"&gt;Aggregated Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Jan-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;North&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Jan-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;East&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Feb-14&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;North&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;120&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;Feb-14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;South&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl67" height="17" style="border-top: none;"&gt;&lt;STRONG&gt;Feb-14&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;East&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;80&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bold rows indicate the effect of aggregation. In other words, in Feb-2014 North - &amp;gt; it takes the sales from jan-2014 and adds it to the sales in feb-2014. Same should follow for march where it would take the new sales from feb-2014 North (120) and adds it to the value for Mar-2014 North. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense. How can do this type of aggregation in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions should help and thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 01:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783670#M667984</guid>
      <dc:creator />
      <dc:date>2014-11-20T01:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783671#M667985</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;use a straight table with cumulated sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i don't have a personal edition right now but that's the way i can explain to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 01:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783671#M667985</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-11-20T01:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783672#M667986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;*,&lt;/P&gt;&lt;P&gt;If(Peek(Region) &amp;lt;&amp;gt; Region, Sales, Peek(AggregatedSales) + Sales) AS AggregatedSales&lt;/P&gt;&lt;P&gt;FROM DataSource&lt;/P&gt;&lt;P&gt;ORder by Region, MonthYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 01:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783672#M667986</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-20T01:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783673#M667987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should correct Jagan's script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;BR /&gt;*,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Peek('Region') &amp;lt;&amp;gt; Region, Sales, Peek('AggregatedSales') + Sales) AS AggregatedSales&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM DataSource&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Order by Region, MonthYear;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peek function doesn't work without quotes&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 02:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783673#M667987</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-20T02:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783674#M667988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following script and PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;[Month Year]&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;Region&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;Sales&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="142875" data-objecttype="1" href="http://community.qlik.com/thread/142875"&gt;http://community.qlik.com/thread/142875&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt; (&lt;SPAN style="color: #0433ff;"&gt;html&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;is&lt;/SPAN&gt; 1252, &lt;SPAN style="color: #0433ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;is&lt;/SPAN&gt; @1);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Data:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; *,&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('Region') &amp;lt;&amp;gt; &lt;SPAN style="color: #941100;"&gt;Region&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;Sales&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('AggregatedSales') + &lt;SPAN style="color: #941100;"&gt;Sales&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;AggregatedSales&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt; tmp&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Region&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;[Month Year]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;table&lt;/SPAN&gt; tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 02:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783674#M667988</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-11-20T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in the script level</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783675#M667989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan and Sergey for your help. You're true lifesavers &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, 20 Nov 2014 03:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-the-script-level/m-p/783675#M667989</guid>
      <dc:creator />
      <dc:date>2014-11-20T03:28:41Z</dc:date>
    </item>
  </channel>
</rss>

