<?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 Average continue to future months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-continue-to-future-months/m-p/528249#M479768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first post here. I have used this community with great succes - so thanks to all&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;However, I have not had succes in finding the answer for my current problem, so I'm hoping for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I'm trying to calculate &lt;SPAN style="text-decoration: underline;"&gt;previous months average, and using them to calculate a forecast&lt;/SPAN&gt;. So in the past I have both 'number of units sold' and 'sales price'. For future months I only have the forecast for 'expected units sold'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For everything in the past (and present) I have no problems. I use the following set analysis to calculate the average of a unit sa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( aggr( rangesum( above( sum({&amp;lt;BIAccount_Name={'Unit Price'}&amp;gt;}M_FinancePerformanceAmount),0,6) ),CalendarPrimary_MonthId, UnitType))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum( aggr( rangesum( above( count({&amp;lt;BIAccount_Name={'Unit Price'}&amp;gt;}M_FinancePerformanceAmount),0,6) ),CalendarPrimary_MonthId, UnitType))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to &lt;SPAN style="text-decoration: underline;"&gt;forecast the turnover&lt;/SPAN&gt;, by simply multiplying my forecast column (which is nicely filled in), with the calculated average. Problem is that the average column, is only filled in, in past and present months - not in future. So I can't multiply the two columns&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put it another way. My set analysis above, doesn't work in the future. What can I do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 13:01:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-17T13:01:29Z</dc:date>
    <item>
      <title>Average continue to future months</title>
      <link>https://community.qlik.com/t5/QlikView/Average-continue-to-future-months/m-p/528249#M479768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first post here. I have used this community with great succes - so thanks to all&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;However, I have not had succes in finding the answer for my current problem, so I'm hoping for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I'm trying to calculate &lt;SPAN style="text-decoration: underline;"&gt;previous months average, and using them to calculate a forecast&lt;/SPAN&gt;. So in the past I have both 'number of units sold' and 'sales price'. For future months I only have the forecast for 'expected units sold'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For everything in the past (and present) I have no problems. I use the following set analysis to calculate the average of a unit sa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( aggr( rangesum( above( sum({&amp;lt;BIAccount_Name={'Unit Price'}&amp;gt;}M_FinancePerformanceAmount),0,6) ),CalendarPrimary_MonthId, UnitType))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum( aggr( rangesum( above( count({&amp;lt;BIAccount_Name={'Unit Price'}&amp;gt;}M_FinancePerformanceAmount),0,6) ),CalendarPrimary_MonthId, UnitType))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to &lt;SPAN style="text-decoration: underline;"&gt;forecast the turnover&lt;/SPAN&gt;, by simply multiplying my forecast column (which is nicely filled in), with the calculated average. Problem is that the average column, is only filled in, in past and present months - not in future. So I can't multiply the two columns&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put it another way. My set analysis above, doesn't work in the future. What can I do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-continue-to-future-months/m-p/528249#M479768</guid>
      <dc:creator />
      <dc:date>2014-01-17T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average continue to future months</title>
      <link>https://community.qlik.com/t5/QlikView/Average-continue-to-future-months/m-p/528250#M479769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample .qvw?&amp;nbsp; It will make it easier to help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 18:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-continue-to-future-months/m-p/528250#M479769</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-17T18:46:58Z</dc:date>
    </item>
  </channel>
</rss>

