<?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: Applying above with more than one row in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897047#M312142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to create some flag to count number and use them with if condition.&lt;/P&gt;&lt;P&gt;But better to have a look into below blog post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2015 09:24:59 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-07-17T09:24:59Z</dc:date>
    <item>
      <title>Applying above with more than one row in script</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897046#M312141</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;as we know, the above function does not work at scriptlevel.&lt;/P&gt;&lt;P&gt;So, im looking for something like that at scriptlevel:&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14371245453968426 jive_text_macro" jivemacro_uid="_14371245453968426" modifiedtitle="true"&gt;
&lt;P&gt;rangesum(above(Value,0,rowno()+11))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, there are the previous or peek functions, but to my knowledge these wont take a range of rows like 'above' for whatever reason....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 09:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897046#M312141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-17T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Applying above with more than one row in script</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897047#M312142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to create some flag to count number and use them with if condition.&lt;/P&gt;&lt;P&gt;But better to have a look into below blog post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 09:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897047#M312142</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-17T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Applying above with more than one row in script</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897048#M312143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for your quick reply.&lt;/P&gt;&lt;P&gt;It works for me like so:&lt;/P&gt;&lt;P&gt;rangesum(Value, peek(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Value&lt;/SPAN&gt;, -1),peek(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Value&lt;/SPAN&gt;, -2),peek(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Value&lt;/SPAN&gt;, -3),.......) as Rolling12MontsValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really elegant but its easy to implement and works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897048#M312143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-17T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Applying above with more than one row in script</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897049#M312144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great that you got expression. Try to implement the same using the link provide above in my first reply. If you want RollingValues, this is the best approach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-above-with-more-than-one-row-in-script/m-p/897049#M312144</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-17T11:55:51Z</dc:date>
    </item>
  </channel>
</rss>

