<?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 Moving average for predicting future values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892647#M73580</link>
    <description>&lt;P&gt;Hello together,&lt;/P&gt;
&lt;P&gt;I am currently having a problem regarding the use of "moving averages" to forecast values.&lt;/P&gt;
&lt;P&gt;Basically, I have the creation month "cr_month" of tickets and the amount of tickets created per month as a dimension (grey bars). Now, I want to forecast the number of tickets for the next 12 mnths using a linear model, which is working fine via linest_m and linest_b, and the moving average (cf. screenshot).&lt;/P&gt;
&lt;P&gt;For the moving average, currently I am using the following logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if
(
   cr_month &amp;lt; 202201
   , count(distinct Ticket_ID)
   , RangeAvg(Above(count(distinct Ticket_ID),0,12))
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my question is: How do I estimate /forecast the number of tickets for the months 202202 - 202301?&amp;nbsp;&amp;nbsp;Unfortunately, the moving average curve is currently decreasing.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Tina&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TinaH_1-1644853275919.png" style="width: 707px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72252i48545A987DBDD66A/image-dimensions/707x244?v=v2" width="707" height="244" role="button" title="TinaH_1-1644853275919.png" alt="TinaH_1-1644853275919.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 15:43:32 GMT</pubDate>
    <dc:creator>TinaH</dc:creator>
    <dc:date>2022-02-14T15:43:32Z</dc:date>
    <item>
      <title>Moving average for predicting future values</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892647#M73580</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;
&lt;P&gt;I am currently having a problem regarding the use of "moving averages" to forecast values.&lt;/P&gt;
&lt;P&gt;Basically, I have the creation month "cr_month" of tickets and the amount of tickets created per month as a dimension (grey bars). Now, I want to forecast the number of tickets for the next 12 mnths using a linear model, which is working fine via linest_m and linest_b, and the moving average (cf. screenshot).&lt;/P&gt;
&lt;P&gt;For the moving average, currently I am using the following logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if
(
   cr_month &amp;lt; 202201
   , count(distinct Ticket_ID)
   , RangeAvg(Above(count(distinct Ticket_ID),0,12))
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my question is: How do I estimate /forecast the number of tickets for the months 202202 - 202301?&amp;nbsp;&amp;nbsp;Unfortunately, the moving average curve is currently decreasing.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;Tina&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TinaH_1-1644853275919.png" style="width: 707px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72252i48545A987DBDD66A/image-dimensions/707x244?v=v2" width="707" height="244" role="button" title="TinaH_1-1644853275919.png" alt="TinaH_1-1644853275919.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 15:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892647#M73580</guid>
      <dc:creator>TinaH</dc:creator>
      <dc:date>2022-02-14T15:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average for predicting future values</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892896#M73616</link>
      <description>&lt;P&gt;1. moving average and forecasting are two fully seperate things!&lt;BR /&gt;as you already solved the linear variant. have a look at the other statistical forecast variants (exp, log).&lt;/P&gt;
&lt;P&gt;Logarithmic ($1 iy your&amp;nbsp; measure (count) and $2 is your date-field):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;linest_m(total aggr(If($2&amp;lt;=today(),$1),$2),(Aggr(Log(Rowno()) * $2, $2))) 
  * (Aggr(Log(Rowno()) * $2, $2))+ linest_b(total aggr(If($2&amp;lt;=today(),$1),$2),
    (Aggr(Log(Rowno()) * $2, $2)));&lt;/LI-CODE&gt;
&lt;P&gt;exponential ($1 iy your&amp;nbsp; measure (count) and $2 is your date-field):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;exp(linest_b(total log(aggr(If($2&amp;lt;=today(),$1),$2)),$2)) 
   * POW( e(), linest_m(total log(aggr(If($2&amp;lt;=today(),$1),$2)),$2) * $2);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If you want a more detailied actual forecasting or as you mentioned&amp;nbsp; areal "estimating" you have to add advanced analytic connections to use machine learning models.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 08:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892896#M73616</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-15T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average for predicting future values</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892913#M73620</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 08:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-for-predicting-future-values/m-p/1892913#M73620</guid>
      <dc:creator>TinaHensel</dc:creator>
      <dc:date>2022-02-15T08:38:58Z</dc:date>
    </item>
  </channel>
</rss>

