<?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: Calculating KPI where the definition changes for every month in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-KPI-where-the-definition-changes-for-every-month-in/m-p/678533#M1080274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use set analysis and combine two expressions and variables.&lt;/P&gt;&lt;P&gt;One for the real and the second for the prognos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See exemple below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 12:38:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-15T12:38:19Z</dc:date>
    <item>
      <title>Calculating KPI where the definition changes for every month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-KPI-where-the-definition-changes-for-every-month-in/m-p/678532#M1080273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a forecast for an entire year and putting into a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition is as follows: If the month has passed, use the actual revenue and if the month is in the future, use the prognosis. Sum the prognosis and actual revenue together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example in January 2014, there is no realised revenue for 2014, so for the forecast of 2014, we use the prognosis for every month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In February there is one month of revenue and 11 months of prognosis which are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In December, one month of prognosis and 11 months of realized revenue are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put this KPI in a straight table, looking something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan-14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14 ...... Dec-14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 98&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 97&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a single month, I can do this quite easily, but I don't know how to put it into a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I do to get the correct number for July in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;&amp;nbsp;&amp;nbsp; Year={'2014'}, AMOUNT_TYPE={'Utfall'} , Month={'&amp;lt;7'} &amp;gt;} AMOUNT)/1000&lt;/P&gt;&lt;P&gt;+ sum({&amp;lt;&amp;nbsp;&amp;nbsp; Year={'2014'}, AMOUNT_TYPE={'Prognos'} , Month={'&amp;gt;=7'} &amp;gt;} AMOUNT)/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-KPI-where-the-definition-changes-for-every-month-in/m-p/678532#M1080273</guid>
      <dc:creator />
      <dc:date>2014-07-15T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating KPI where the definition changes for every month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-KPI-where-the-definition-changes-for-every-month-in/m-p/678533#M1080274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use set analysis and combine two expressions and variables.&lt;/P&gt;&lt;P&gt;One for the real and the second for the prognos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See exemple below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-KPI-where-the-definition-changes-for-every-month-in/m-p/678533#M1080274</guid>
      <dc:creator />
      <dc:date>2014-07-15T12:38:19Z</dc:date>
    </item>
  </channel>
</rss>

