<?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 Another Forecast issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143449#M22687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;Based on the table above. Could you give me an example of the load..while functionality where months are recalculated to days?&lt;/P&gt;&lt;P&gt;Sorry to bother you so much with this forecasting issue but these are new grounds for me..&lt;/P&gt;&lt;P&gt;Thanks, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 13:47:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-12T13:47:13Z</dc:date>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143445#M22683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have got a forecast table which contains something like the following data:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Department&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Article&lt;/TD&gt;&lt;TD&gt;Quantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Shoe&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Shirt&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Jeans&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Shoe&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Shirt&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Direct Sales&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Jeans&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account Management&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Shoe&lt;/TD&gt;&lt;TD&gt;48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account Management&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Shirt&lt;/TD&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account Management&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Jeans&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account Management&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Shoe&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Account Management&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Shirt&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I have got a orderdate, article and department to create a link to my sales-data (I have already accomplished this thanks to this forum).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wish 1:&lt;/STRONG&gt; always show all the data from the forecast table, even if a certain article is not sold in the forecasted month by the forecasted department, but still be able to use all the dimensions from the salestable to filter sales. So if I create a table the first 2 columns should contain all forecasted products and their forecast, even if a product isn't sold in the selected period.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wish 2:&lt;/STRONG&gt; The forecast is monthly, as you can see in the table, I would like to make this a daily forecast. This way I can add a calendar which contains all time dimensions including week and day. So I need a way to distribute the forecasted quantity per month to days. Is there a way to handle this in the script?&lt;/P&gt;&lt;P&gt;Hope you guys can give me any pointers!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 18:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143445#M22683</guid>
      <dc:creator />
      <dc:date>2009-05-06T18:41:55Z</dc:date>
    </item>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143446#M22684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sander,&lt;/P&gt;&lt;P&gt;well, the "book answer" to the first "wish" is using "loosely coupled tables", but it's such a shaky ground that I wouldn't honestly recommend it... Some other ways of approaching it would be:&lt;/P&gt;&lt;P&gt;1. Keep Sales Date and Forecast Month completely disjointed, i.e. Jan 15 as a Sales Date has nothing in common with Jan as a Forecast Month.&lt;/P&gt;&lt;P&gt;2. Use Set Analysis to apply certain selections and ignore certain other selsctions in a specific expression.&lt;/P&gt;&lt;P&gt;For your Wish 2 - you could use load ... while ... functionality to generate individual dates and calculate daily forecast based on monthly, dividing it by the number of working days in a month (as an example).&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 23:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143446#M22684</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-06T23:07:02Z</dc:date>
    </item>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143447#M22685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sander,&lt;/P&gt;&lt;P&gt;This is the exact thing that I am doing as well! Hope it works out.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 23:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143447#M22685</guid>
      <dc:creator />
      <dc:date>2009-05-06T23:39:04Z</dc:date>
    </item>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143448#M22686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg, thanks for your help again! Could you explain the setanalysis functionality in this case a bit more?&lt;/P&gt;&lt;P&gt;Mike, what exactly are you doing? The disjoin or the load...while sequence to generate days from month?&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 13:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143448#M22686</guid>
      <dc:creator />
      <dc:date>2009-05-12T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143449#M22687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;Based on the table above. Could you give me an example of the load..while functionality where months are recalculated to days?&lt;/P&gt;&lt;P&gt;Sorry to bother you so much with this forecasting issue but these are new grounds for me..&lt;/P&gt;&lt;P&gt;Thanks, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 13:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143449#M22687</guid>
      <dc:creator />
      <dc:date>2009-05-12T13:47:13Z</dc:date>
    </item>
    <item>
      <title>Another Forecast issue</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143450#M22688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;We've hired QlikView help for this issue. The following script was coded by a QlikView consultant. The script calculates a monthly values to daily values based on the number of working days in the corresponding month.&lt;/P&gt;&lt;P&gt;//********************** Budget for Direct Sales *********************************//&lt;BR /&gt;TempBudget:&lt;BR /&gt;CROSSTABLE(BudgetMaand, Budget, 1)&lt;BR /&gt;LOAD&lt;BR /&gt; Artikelcode,&lt;BR /&gt; [1],&lt;BR /&gt; [2],&lt;BR /&gt; [3],&lt;BR /&gt; [4],&lt;BR /&gt; [5],&lt;BR /&gt; &lt;IMG alt="Devil" src="http://community.qlik.com/emoticons/emotion-14.gif" /&gt;,&lt;BR /&gt; [7],&lt;BR /&gt; &lt;IMG alt="Music" src="http://community.qlik.com/emoticons/emotion-29.gif" /&gt;,&lt;BR /&gt; [9],&lt;BR /&gt; [10],&lt;BR /&gt; [11],&lt;BR /&gt; [12]&lt;BR /&gt;FROM [..\..\Datasources\Input\Begroting 2009 Terminalverkopen.xls] (biff, embedded labels, table is DS$);&lt;/P&gt;&lt;P&gt;Budget2:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;'Direct Sales' as Verkoop.Verkoopafdeling&lt;BR /&gt;RESIDENT TempBudget;&lt;/P&gt;&lt;P&gt;Drop table TempBudget;&lt;/P&gt;&lt;P&gt;//********************** Budget for Account Management *********************************//&lt;/P&gt;&lt;P&gt;TempBudget:&lt;BR /&gt;CROSSTABLE(BudgetMaand, Budget, 2)&lt;BR /&gt;ADD LOAD&lt;BR /&gt; Artikelcode,&lt;BR /&gt; 'Account Management' as Verkoop.Verkoopafdeling,&lt;BR /&gt; [1],&lt;BR /&gt; [2],&lt;BR /&gt; [3],&lt;BR /&gt; [4],&lt;BR /&gt; [5],&lt;BR /&gt; &lt;IMG alt="Devil" src="http://community.qlik.com/emoticons/emotion-14.gif" /&gt;,&lt;BR /&gt; [7],&lt;BR /&gt; &lt;IMG alt="Music" src="http://community.qlik.com/emoticons/emotion-29.gif" /&gt;,&lt;BR /&gt; [9],&lt;BR /&gt; [10],&lt;BR /&gt; [11],&lt;BR /&gt; [12]&lt;BR /&gt;FROM [..\..\Datasources\Input\Begroting 2009 Terminalverkopen.xls] (biff, embedded labels, table is AM$);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Budget3:&lt;BR /&gt;LOAD *,&lt;BR /&gt;Num#(BudgetMaand) as MonthNum&lt;BR /&gt;RESIDENT Budget2;&lt;/P&gt;&lt;P&gt;DROP Table Budget2;&lt;/P&gt;&lt;P&gt;//****************Creation of dates for the budget******************//&lt;/P&gt;&lt;P&gt;LET StartDate = '01-01-2009';&lt;/P&gt;&lt;P&gt;Left JOIN (Budget3)&lt;BR /&gt; LOAD&lt;BR /&gt; rowno() AS DateKey,&lt;BR /&gt; date('$(StartDate)' + recno() - 1, 'MM-DD-YYYY') AS PeriodDate,&lt;BR /&gt; Num (Month (date('$(StartDate)' + recno() - 1, 'MM-DD-YYYY'))) as MonthNum&lt;BR /&gt; AUTOGENERATE(365);&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Budget3)&lt;BR /&gt;LOAD&lt;BR /&gt;rowno() as MonthNum,&lt;BR /&gt;Networkdays ( MonthStart ('1-01-2009', rowno()-1),MonthEnd ('1-01-2009',rowno()-1) )as Nbofworkingdays //Nber of days excluding Saturday and Sunday&lt;BR /&gt;AUTOGENERATE (12);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//************** Split of the monthly budget per day *******************//&lt;BR /&gt;Budget:&lt;BR /&gt;LOAD *,&lt;BR /&gt;'0' as DailyBudget,&lt;BR /&gt;Num(WeekDay(PeriodDate)) as WeekDay&lt;BR /&gt;RESIDENT Budget3&lt;BR /&gt;WHERE WeekDay(PeriodDate)&amp;gt;4; //saturdays and sundays&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;Budget/Nbofworkingdays as DailyBudget,&lt;BR /&gt;Num(WeekDay(PeriodDate)) as WeekDay&lt;BR /&gt;RESIDENT Budget3&lt;BR /&gt;WHERE WeekDay(PeriodDate)&amp;lt;5; //mondays to fridays&lt;/P&gt;&lt;P&gt;DROP Table Budget3;&lt;BR /&gt;DROP Field Budget, BudgetMaand, MonthNum, DateKey, WeekDay FROM Budget;&lt;/P&gt;&lt;P&gt;BudgetNew:&lt;BR /&gt;LOAD *,&lt;BR /&gt;autonumber (Verkoop.Verkoopafdeling &amp;amp;'-'&amp;amp;Artikelcode&amp;amp;'-'&amp;amp;NUM(PeriodDate)) as Key&lt;BR /&gt;RESIDENT Budget;&lt;/P&gt;&lt;P&gt;DROP Table Budget;&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 13:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Forecast-issue/m-p/143450#M22688</guid>
      <dc:creator />
      <dc:date>2009-05-20T13:44:21Z</dc:date>
    </item>
  </channel>
</rss>

