<?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 Altering future predictions using IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Altering-future-predictions-using-IF-Statement/m-p/170985#M41184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It wouldn't allow me to attach 2 files so here is my excel spreadsheet with sample data&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 11:05:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-23T11:05:40Z</dc:date>
    <item>
      <title>Altering future predictions using IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Altering-future-predictions-using-IF-Statement/m-p/170984#M41183</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;I am trying to create a graph that shows revised predictions based on new results. I have made a predictions for hourly call volume rates for the day. I then want QlikView to alter this prediction based on actual call volumes.&lt;/P&gt;&lt;P&gt;In this example I have assumed that actual is 75% of predicted. This could vary and so I need QlikView to calculate the average change and use this to change the prediction. I struggled with this so manipulated the data in Excel to do this for me.&lt;/P&gt;&lt;P&gt;My problem occurs when the call volume is 0 (i.e for those hours in the day that have not occurred). I need it to use the average of previous hours rather than work out the change from 0 (which is 0). So far I've got:&lt;/P&gt;&lt;P&gt;If([Today]=0, Sum([Line Predictions])*Avg([Average Change]), Sum([Line Predictions])*Sum([Today])/[Line Predictions])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the confusing explanation. I have attached my sample data and QlikView file to explain things better.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 11:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Altering-future-predictions-using-IF-Statement/m-p/170984#M41183</guid>
      <dc:creator />
      <dc:date>2010-08-23T11:03:32Z</dc:date>
    </item>
    <item>
      <title>Altering future predictions using IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Altering-future-predictions-using-IF-Statement/m-p/170985#M41184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It wouldn't allow me to attach 2 files so here is my excel spreadsheet with sample data&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 11:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Altering-future-predictions-using-IF-Statement/m-p/170985#M41184</guid>
      <dc:creator />
      <dc:date>2010-08-23T11:05:40Z</dc:date>
    </item>
  </channel>
</rss>

