<?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 networkdays() forecast in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198136#M57552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't download attachments, with very few exceptions.&lt;BR /&gt;Example of your problem would be helpful. For now, I assume that you select a month (hope it is numeric or dual), and want to see the number of working days between the end of the selected month and the year end for both current and previous year. If this is correct, the right question to ask is how to define start date and end date in the newtworkdays() function.&lt;/P&gt;&lt;P&gt;For the current year:&lt;BR /&gt;startdate - makedate(year(today()),MONTH+1,1)&lt;BR /&gt;enddate - makedate(year(today()),12,31) or YearEnd(today())&lt;BR /&gt;networkdays(makedate(year(today()),MONTH+1,1), YearEnd(today()))&lt;/P&gt;&lt;P&gt;For the previous year:&lt;BR /&gt;startdate - makedate(year(today())-1,MONTH+1,1)&lt;BR /&gt;enddate - makedate(year(today())-1,12,31) or date(YearStart(today())-1)&lt;BR /&gt;networkdays(makedate(year(today()),MONTH+1,1), date(YearStart(today())-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jun 2010 14:09:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-23T14:09:49Z</dc:date>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198132#M57548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I have a question regarding the networkdays() function.&lt;/P&gt;&lt;P&gt;I have data with dates up until 11-06-2010 as field [DATE PICKED], but what I would like to do is predict the amount of working days that will apply for months July up until December. The reason I cannot do this is because I use networkdays(montstart([DATE PICKED]),monthend([DATE PICKED])) to calculate the working days in order to show it correctly by month. I have historical data, but only want my application to show the current year's networkdays.&lt;/P&gt;&lt;P&gt;Could anyone possible help me or is the only option to use a pre-calculated sheet &amp;amp; link the data??&lt;/P&gt;&lt;P&gt;Thank you. All repsonses are appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 18:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198132#M57548</guid>
      <dc:creator />
      <dc:date>2010-06-22T18:48:48Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198133#M57549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to have all dates listed in order to use networkdays function. For example, if you have&lt;BR /&gt;networkdays('07/01/2010', '12/31/2010')&lt;BR /&gt;You get the result for the second half of year 2010 regardless if you have all these dates anywhere in you data. Another example, for full curent year:&lt;BR /&gt;networkdays(YearStart(today()), YearEnd(today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 21:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198133#M57549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-22T21:26:29Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198134#M57550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;networkdays() funcation given number of working day between two date excluding Saturday and sumday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 05:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198134#M57550</guid>
      <dc:creator />
      <dc:date>2010-06-23T05:38:00Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198135#M57551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First of all thank you for your responses.&lt;/P&gt;&lt;P&gt;MIchael - I only use the Month name in my calculation, thus whenever I do not click on a year, it shows the networkdays for the previous year (2009). The reason I don't want to use Year as a dimension is because I want to list the valid picks for this year next to the valid picks of last year for each corespondig month.&lt;/P&gt;&lt;P&gt;Without listing Year as dimension I've tried using your logic, but it then shows the same amount of networkdays accross all the months. If I do add the Year to the dimension, I still don't get the forecasted network days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be so kind as to have a look at the attached file &amp;amp; leave me comments regarding this??&lt;/P&gt;&lt;P&gt;Thank you for your help guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 12:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198135#M57551</guid>
      <dc:creator />
      <dc:date>2010-06-23T12:39:25Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198136#M57552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't download attachments, with very few exceptions.&lt;BR /&gt;Example of your problem would be helpful. For now, I assume that you select a month (hope it is numeric or dual), and want to see the number of working days between the end of the selected month and the year end for both current and previous year. If this is correct, the right question to ask is how to define start date and end date in the newtworkdays() function.&lt;/P&gt;&lt;P&gt;For the current year:&lt;BR /&gt;startdate - makedate(year(today()),MONTH+1,1)&lt;BR /&gt;enddate - makedate(year(today()),12,31) or YearEnd(today())&lt;BR /&gt;networkdays(makedate(year(today()),MONTH+1,1), YearEnd(today()))&lt;/P&gt;&lt;P&gt;For the previous year:&lt;BR /&gt;startdate - makedate(year(today())-1,MONTH+1,1)&lt;BR /&gt;enddate - makedate(year(today())-1,12,31) or date(YearStart(today())-1)&lt;BR /&gt;networkdays(makedate(year(today()),MONTH+1,1), date(YearStart(today())-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 14:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198136#M57552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-23T14:09:49Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198137#M57553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2086.NoYear.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2086.NoYear.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;Here are some images of what I`m trying to achieve &amp;amp; what happens:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0116.YearSelected.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0116.YearSelected.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`d like to show the 2009 Picks &amp;amp; Picks together (this is why I did not add YEAR as a dimension, as my columns would double) -the first two columns have been sorted out using set analysis - . When no year/month is selected, then it the networkdays() function will show the working days of 2009, but I want it to show 2010's working days. When a year has been selected, it only shows the networkdays up until June, but I would like to show it up until December, because I have addisional calculations that I would like to do with the number of working days (hence the forecast).&lt;/P&gt;&lt;P&gt;If this is not explicitly possible, could you help me with altenatives that might work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 16:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198137#M57553</guid>
      <dc:creator />
      <dc:date>2010-06-23T16:25:23Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198138#M57554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be a kluge, but I've got it working. I assume that you always want working days to refelect the number of working days for the current year. Perhaps I'm wrong. Anyhow, I changed the formula you're using to calculate working days like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=max({1&amp;lt;YEAR&amp;gt;} networkdays(makeDate(year(today()),MONTH),monthend(makeDate(year(today()),MONTH))))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now, regardless the year selection, I always see the number of working days in the current year.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 19:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198138#M57554</guid>
      <dc:creator />
      <dc:date>2010-06-23T19:47:44Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198139#M57555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have MONTH as dimension - that means you know start and end date for 2010:&lt;BR /&gt;startdate - makedate(2010, MONTH,1)&lt;BR /&gt;enddate - monthend(makedate(2010,MONTH,1))&lt;BR /&gt;So, working days will be:&lt;BR /&gt;networkdays(makedate(2010, MONTH,1), monthend(makedate(2010,MONTH,1)))&lt;/P&gt;&lt;P&gt;Again, the MONTH field here must be numeric or dual.&lt;/P&gt;&lt;P&gt;PS: suggestion from Fry is logically the same, just different syntax and 2010 replaced with latest year. Use whatever fits you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 20:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198139#M57555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-23T20:22:35Z</dc:date>
    </item>
    <item>
      <title>networkdays() forecast</title>
      <link>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198140#M57556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you both very much for your responses. I've tried your solutions &amp;amp; now understand better on how to approach such a problem. Here is the syntax that i had used&lt;/P&gt;&lt;P&gt;=max({1&amp;lt;YEAR=&amp;gt;} networkdays(makeDate(year(today()),MONTH),monthend(makeDate(year(today()),MONTH))))&lt;/P&gt;&lt;P&gt;One thing I still don't understand though is this:&lt;/P&gt;&lt;P&gt;={1&amp;lt;YEAR&amp;gt;}&lt;/P&gt;&lt;P&gt;What exactly is the '1' for??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 11:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/networkdays-forecast/m-p/198140#M57556</guid>
      <dc:creator />
      <dc:date>2010-06-24T11:06:25Z</dc:date>
    </item>
  </channel>
</rss>

