<?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: Re: Adding Lead time Working Days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642054#M235198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60219_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 06:28:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-06T06:28:41Z</dc:date>
    <item>
      <title>Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642050#M235194</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;&lt;/P&gt;&lt;P&gt;Suppose I am having a Date fuield as Date_From and another field of Lead Days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to create a new column Date_End which should be Date_From +Lead Days(Working Days only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose Date from is 6-6-2014 and lead days is 10,&lt;/P&gt;&lt;P&gt;Then Date_End should be 20-6-2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 05:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642050#M235194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T05:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642051#M235195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=date(Date_From+Lead_Days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this expression gives Date_End&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642051#M235195</guid>
      <dc:creator />
      <dc:date>2014-06-06T06:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642052#M235196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=LastWorkDate(Today(1)+1, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642052#M235196</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-06-06T06:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642053#M235197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its helpful but there issue that it will treat Mon-Fri as workdays only,&lt;/P&gt;&lt;P&gt;while I want a flexibility to define my own work days....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suppose I have Mon and Tue as Holidays then what should be done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642053#M235197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T06:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642054#M235198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60219_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642054#M235198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T06:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642055#M235199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;networkdays (start:date, end_date {, holiday}) Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps. use this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642055#M235199</guid>
      <dc:creator />
      <dc:date>2014-06-06T06:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642056#M235200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lastworkdate(start_date, no_of_workdays {, holiday}) Returns the earliest ending date to achieve number_of_workdays (Monday-Friday) if starting at start_date taking into account any optionally listed holidays. Start_date and holiday should be valid dates or timestamps. this is appropriate in ur case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642056#M235200</guid>
      <dc:creator />
      <dc:date>2014-06-06T06:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642057#M235201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the holidays have to be defined in dates, but as you can seewe have week offs different and suppose if lead days is big as 360 , 450, then how many dates we will pass......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642057#M235201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-06T06:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642058#M235202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see I know v have holidays different. in that expression holiday is ur customized weekoff. no_of_workdays will b ur lead time(it can be 350,450 or whatever), start_date is ur start_date. but there us a problem here . v can specify only one day as weekoff.. it has to be improvised.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 07:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642058#M235202</guid>
      <dc:creator />
      <dc:date>2014-06-06T07:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Adding Lead time Working Days</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642059#M235203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;BR /&gt;Count:&lt;/P&gt;
&lt;P&gt;load&lt;BR /&gt; *,&lt;BR /&gt; RangeSum(If( WildMatch([Week Offs],'*'&amp;amp;Weekday(StartDate+IterNo()-1)&amp;amp;'*'),1+Peek('Count'),Peek('Count'))) as Count&lt;BR /&gt;While IterNo()&amp;lt;=LeadDays;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;StartDate, LeadDays, Week Offs&lt;BR /&gt;01-Jun-2014, 15, "Monday, Tuesday"&lt;BR /&gt;15-Jun-2014, 10, "Wednesday, Friday"&lt;BR /&gt;25-Jun-2014, 25, "Saturday, Tuesday"&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt; StartDate,&lt;BR /&gt; LeadDays,&lt;BR /&gt; Date(StartDate+LeadDays+Max(Count)) as EndDate&lt;BR /&gt;Resident Count Group By StartDate,LeadDays;&lt;/P&gt;
&lt;P&gt;Drop Table Count; &lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 07:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Lead-time-Working-Days/m-p/642059#M235203</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-06T07:23:46Z</dc:date>
    </item>
  </channel>
</rss>

