<?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: Decorrelate an expression with a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1840029#M1215217</link>
    <description>&lt;P&gt;Thanks but it doesn't really answer to the problem.&lt;/P&gt;&lt;P&gt;MonthForecast has to be set as a column in addition to Calendar which is on the left.&lt;/P&gt;&lt;P&gt;Each month, I receive new files with new forecast data so I'd like to compare them.&lt;/P&gt;&lt;P&gt;I attach an Excel file to show you what I need for the restitution.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 09:37:50 GMT</pubDate>
    <dc:creator>arnoqlik</dc:creator>
    <dc:date>2021-09-29T09:37:50Z</dc:date>
    <item>
      <title>Compare actual data and several versions of monthly forecast data</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1839717#M1215188</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have Excel files as a source of my application.&lt;/P&gt;&lt;P&gt;All files include sales data but some for actual and others for forecast.&lt;BR /&gt;Each month I have an Excel file with the forecast of the next months (field MonthForecast in the attachment) and another file for the actual sales of the previous month.&lt;/P&gt;&lt;P&gt;The months of the forecast and the actual results are linked to a calendar table through a key field (format 'YYYYMMDD').&lt;/P&gt;&lt;P&gt;The aim is to mix both sources of data together. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;• If I select MonthForecast = February 2021 (file received in February 2021 for the forecast of the next months) then I should have actual data before February 2021 and the forecast starting from February 2021.

• If I select MonthForecast = March 2021 (file received in March 2021 for the forecast of the next months) then I should have actual data before March 2021 and the forecast starting from March 2021.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would write it like that: &lt;STRONG&gt;If Period_Month &amp;lt; MonthForecast Then&amp;nbsp;AmountActual Else&amp;nbsp;AmountForecast&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you can see in the attachment, the actual data is not linked to the MonthForecast so I can't write this formula.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;Note: the title may be confusing so I hope that the explanation helps to understand the problem!&lt;BR /&gt;Managing 2 calendars would be a solution?&lt;BR /&gt;&lt;BR /&gt;Note 2: the source files 'Actual' and 'Forecast' have a lot of common fields, that's why I merged everything into one single table.&lt;/P&gt;&lt;P&gt;Note 3: I will have to create a chart too that shows actual/forecast data for the previous period.&lt;BR /&gt;Example: I select Period_Month = February-June 2021 and MonthForecast = March 2021 (so actual data for February 2021 and forecast data for March-June 2021). I'd like to have the actual data for February-June 2020.&lt;/P&gt;&lt;P&gt;Note4: I'm a newbie in Qlikview dev&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 10:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1839717#M1215188</guid>
      <dc:creator>arnoqlik</dc:creator>
      <dc:date>2021-09-29T10:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Decorrelate an expression with a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1839847#M1215193</link>
      <description>&lt;P&gt;You could create a variable called&amp;nbsp;vMFcst which =&amp;nbsp;Max(MonthForecast)&lt;/P&gt;&lt;P&gt;Then have Period_Month as dimension and the below as expression.&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Period_Month={"&amp;lt;$(vMFcst)"}&amp;gt;}AmountActual)&amp;nbsp;&lt;BR /&gt;+&lt;BR /&gt;sum({&amp;lt;Period_Month={"&amp;gt;=$(vMFcst)"}&amp;gt;}AmountForecast)&lt;/P&gt;&lt;P&gt;However... I wouldn't recommend this as an approach due to the '1' in the set analysis, which will ignore other selections. Better would be to create a new floating table with the ForecastMonth field and then use this to select the month and feed to the variable.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 15:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1839847#M1215193</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2021-09-28T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Decorrelate an expression with a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1840029#M1215217</link>
      <description>&lt;P&gt;Thanks but it doesn't really answer to the problem.&lt;/P&gt;&lt;P&gt;MonthForecast has to be set as a column in addition to Calendar which is on the left.&lt;/P&gt;&lt;P&gt;Each month, I receive new files with new forecast data so I'd like to compare them.&lt;/P&gt;&lt;P&gt;I attach an Excel file to show you what I need for the restitution.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 09:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-actual-data-and-several-versions-of-monthly-forecast/m-p/1840029#M1215217</guid>
      <dc:creator>arnoqlik</dc:creator>
      <dc:date>2021-09-29T09:37:50Z</dc:date>
    </item>
  </channel>
</rss>

