<?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: Calculate Extended Moving Average  (EMA) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442968#M561981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rod, That turns out to be exactly what I did. I simply named the column and then referred to the column by name in the row above. I just never got to post the result. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jun 2014 21:30:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-14T21:30:23Z</dc:date>
    <item>
      <title>Calculate Extended Moving Average  (EMA)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442964#M561977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have an example of a QlikView expressio to calculate an "x" period exponential moving average (EMA)? I know how to do a simple (rolling) average using RangeAvg() and Above(), but an EMA is more complex, because it uses the prior record's EMA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"x" can be any number you'd like (e.g. 50, 200, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 17:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442964#M561977</guid>
      <dc:creator />
      <dc:date>2013-03-14T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Extended Moving Average  (EMA)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442965#M561978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EMA is a recursive calculation. That can't be done in an expression afaik since an expression can't reference itself. You can calculate it in the script using the peek function. But that's not very dynamic since you can't vary x. Maybe you can &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2975"&gt;use R&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: fixed some typos, i.e can to can't&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 17:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442965#M561978</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-14T17:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Extended Moving Average  (EMA)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442966#M561979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're saying that it "can" reference itself? Do you have an example of this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442966#M561979</guid>
      <dc:creator />
      <dc:date>2013-03-14T18:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Extended Moving Average  (EMA)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442967#M561980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this thread is a bit old but for the sake of posterity I'd thought I'd point out that a chart expression CAN reference itself.&amp;nbsp; For example, I've had a quick go at doing an exponential moving average with a period of 9 and a weighting of 0.2 where the expression has the Label "EMA9":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(RowNo() = 1, Data, (Data - Above(EMA9)) * .2 + Above(EMA9))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically I guess I shouldn't be starting the EMA from row 1 the way I have, but I hope it gives you the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 04:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442967#M561980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-09T04:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Extended Moving Average  (EMA)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442968#M561981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rod, That turns out to be exactly what I did. I simply named the column and then referred to the column by name in the row above. I just never got to post the result. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 21:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Extended-Moving-Average-EMA/m-p/442968#M561981</guid>
      <dc:creator />
      <dc:date>2014-06-14T21:30:23Z</dc:date>
    </item>
  </channel>
</rss>

