<?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: Last 3 months sum , make as column value in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320305#M409275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only change in previous reference, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px;"&gt;RangeSum(Peek('TotalAmount'),Peek('TotalAmount',-2),&lt;SPAN style="color: #ff0000;"&gt;Peek(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'courier new', courier;"&gt;TotalAmount,-3)&lt;/SPAN&gt;) as RollingThree&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 07:09:26 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-07-05T07:09:26Z</dc:date>
    <item>
      <title>Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320301#M409271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have date wise data and i want to write a script which generates a column in my script, which has sum of previous 3 months data for same month &lt;/P&gt;&lt;P&gt;ex : for apr 2016&amp;nbsp; , sum of amount for apr , mar and feb 2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 01:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320301#M409271</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-04T01:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320302#M409272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agnivesh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It Can be done in front end also using rangesum and above funtion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above((Sales),0,3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 02:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320302#M409272</guid>
      <dc:creator />
      <dc:date>2017-07-04T02:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320303#M409273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;t1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Date,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as MonthName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount_New&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(ooxml, embedded labels, table is Sheet2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;t2:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MonthName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Sum(Amount) as TotalAmount&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident t1 Group By MonthName Order By MonthName;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;t3:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MonthName,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; TotalAmount,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;RangeSum(TotalAmount,Peek('TotalAmount'),Peek('TotalAmount',-2)) as RollingThree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident t2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Drop Table t1,t2;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168974_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 05:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320303#M409273</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-07-04T05:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320304#M409274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks , Tresesco&amp;nbsp; , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little change in my requirement , if&amp;nbsp; i want like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Apr month data i need to some (Mar+Feb+Jan)&lt;/P&gt;&lt;P&gt;and soo on &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320304#M409274</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-05T07:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320305#M409275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only change in previous reference, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px;"&gt;RangeSum(Peek('TotalAmount'),Peek('TotalAmount',-2),&lt;SPAN style="color: #ff0000;"&gt;Peek(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'courier new', courier;"&gt;TotalAmount,-3)&lt;/SPAN&gt;) as RollingThree&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320305#M409275</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-07-05T07:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320306#M409276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for 1st month of whole data i am getting zero , can it be possible to have the same value comes in &lt;SPAN style="font-size: 13.3333px;"&gt;1st month of whole data and rest should work same like above .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320306#M409276</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-05T07:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320307#M409277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( RowNo()=&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px; background-color: #f2f2f2;"&gt;TotalAmount&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px; background-color: #f2f2f2;"&gt;RangeSum(Peek('TotalAmount'),Peek('TotalAmount',-2),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; background-color: #f2f2f2; color: #ff0000;"&gt;Peek(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; background-color: #f2f2f2; color: #ff0000;"&gt;TotalAmount,-3)&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px; background-color: #f2f2f2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px; background-color: #f2f2f2;"&gt;)&amp;nbsp; as RollingThree&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320307#M409277</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-07-05T07:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320308#M409278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(RowNo()=[Sales Plan in KS],RangeSum(Peek('Sales Plan in KS'),Peek('Sales Plan in KS',-2),Peek('Sales Plan in KS',-3))) as RollingThree_New_2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 08:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320308#M409278</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-05T08:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320309#M409279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think , i was doing incorrect&amp;nbsp; ,&amp;nbsp; below is correct one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(RowNo()=1,[Sales Plan in KS],RangeSum(Peek('Sales Plan in KS'),Peek('Sales Plan in KS',-2),Peek('Sales Plan in KS',-3))) as RollingThree_New_2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 08:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320309#M409279</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-05T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 months sum , make as column value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320310#M409280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i want to calculate last 6 and last 12 months also what should i change in expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-months-sum-make-as-column-value-in-script/m-p/1320310#M409280</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2017-07-05T18:57:45Z</dc:date>
    </item>
  </channel>
</rss>

