<?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: Four Week Average at Script Level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411932#M700494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid you've done something wrong somewhere. If I load your Test rolling.xls in qlikview and use the load script you posted, the values are calculated correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Oct 2012 09:02:40 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-10-14T09:02:40Z</dc:date>
    <item>
      <title>Four Week Average at Script Level</title>
      <link>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411931#M700493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is working fine for the example you had shared earlier where I had&amp;nbsp; numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when i apply the same script to big numbers i am not getting the desired results in QV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached excel file for your reference, where red font shows the results coming for four week averages in QV. And below is the script used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt; color: #0000ff;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Fiscal Week Ending]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Sales Out $]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Sales Out $]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Sales Out $]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,-1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Sales Out $]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,-2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Sales Out $]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,-3))&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;myRollingAvg&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you to provide your view on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nassar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 08:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411931#M700493</guid>
      <dc:creator />
      <dc:date>2012-10-14T08:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Four Week Average at Script Level</title>
      <link>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411932#M700494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid you've done something wrong somewhere. If I load your Test rolling.xls in qlikview and use the load script you posted, the values are calculated correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 09:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411932#M700494</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-14T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Four Week Average at Script Level</title>
      <link>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411933#M700495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the new data in the excel sheet attached in another query i am going to post now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the correct results for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly have a look and&amp;nbsp; advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nassar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 10:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Four-Week-Average-at-Script-Level/m-p/411933#M700495</guid>
      <dc:creator />
      <dc:date>2012-10-14T10:12:12Z</dc:date>
    </item>
  </channel>
</rss>

