<?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 rangeAvg excluding the first few datapoints in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346471#M574209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's probably not clear when looking at the functions description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggr() allows us to have a full embedded table of Period values (due to the {1} ) for the Rangeavg(above()) calculation, but then the results shown (i.e. calculated values per dimension value in the the chart object) are limited to the current selection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 09:59:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-06-11T09:59:45Z</dc:date>
    <item>
      <title>rangeAvg excluding the first few datapoints</title>
      <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346467#M574205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I am trying to calculate a 6 month moving average. I have read fairly extensively and tried several options, and what I have so far is this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;RangeAvg&lt;/SPAN&gt;(&lt;SPAN style="color: #3366ff;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #3366ff;"&gt;sum&lt;/SPAN&gt;({1} &lt;SPAN style="color: #993300;"&gt;[AllShareValue]&lt;/SPAN&gt;),0,6)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;The reason why I use the&amp;nbsp; {1} set analysis is because when people select a section of months, the first selection needs to go 6 months back &lt;STRONG&gt;out of that selection period&lt;/STRONG&gt; in order to calculate itself, so I have to use the {1} so that the calculation knows there are more months behind the first selected one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;This is all well and good, but the problem is that the graph is showing data outside of the selection now. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;I want to c&lt;/STRONG&gt;&lt;STRONG&gt;alculate using data &lt;SPAN style="text-decoration: underline;"&gt;outside&lt;/SPAN&gt; of the selection, but then display data &lt;SPAN style="text-decoration: underline;"&gt;within&lt;/SPAN&gt; the currently selected dates&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I'm fairly new to qlikview, and I'm struggling to rap my head around this one. Any ideas?&lt;/SPAN&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;/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="font-size: 8pt; font-family: terminal, monaco;"&gt;Please don't reply with qlikview documents containing the calculation, because I currently don't have the full version of Qlikview. I'm creating a prototype to illustrate to my boss what qlikview can do, in order to convince him to buy it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346467#M574205</guid>
      <dc:creator />
      <dc:date>2012-06-11T09:18:11Z</dc:date>
    </item>
    <item>
      <title>rangeAvg excluding the first few datapoints</title>
      <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346468#M574206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just like to add that my question is the same as this guy's (or girl's):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A _jive_internal="true" href="https://community.qlik.com/message/120732#120732"&gt;http://community.qlik.com/message/120732#120732&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346468#M574206</guid>
      <dc:creator />
      <dc:date>2012-06-11T09:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: rangeAvg excluding the first few datapoints</title>
      <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346469#M574207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try embedding your expression in an advanced aggregation, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;=aggr(&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;RangeAvg&lt;/SPAN&gt;(&lt;SPAN style="color: #3366ff;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #3366ff;"&gt;sum&lt;/SPAN&gt;({1} &lt;SPAN style="color: #993300;"&gt;[AllShareValue]&lt;/SPAN&gt;),0,6)) , Period)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;There is one pitfall here, aggr() function uses load order as sort order for its dimension valuesm, so you must take care that your Period values are sorted correctly while loading in.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346469#M574207</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-11T09:43:31Z</dc:date>
    </item>
    <item>
      <title>rangeAvg excluding the first few datapoints</title>
      <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346470#M574208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I really didn't think it would be so easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at the aggr function but I guess I didn't understand it enough because I couldn't see how it could help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346470#M574208</guid>
      <dc:creator />
      <dc:date>2012-06-11T09:55:51Z</dc:date>
    </item>
    <item>
      <title>rangeAvg excluding the first few datapoints</title>
      <link>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346471#M574209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's probably not clear when looking at the functions description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aggr() allows us to have a full embedded table of Period values (due to the {1} ) for the Rangeavg(above()) calculation, but then the results shown (i.e. calculated values per dimension value in the the chart object) are limited to the current selection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangeAvg-excluding-the-first-few-datapoints/m-p/346471#M574209</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-11T09:59:45Z</dc:date>
    </item>
  </channel>
</rss>

