<?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: get a date excluding the weekends in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111379#M889332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Date1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(weekday(Date1)&amp;lt;&amp;gt;'Sat' or weekday(Date1)&amp;lt;&amp;gt;'Sun', num(Date1)+3) as Date2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 07:34:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-30T07:34:24Z</dc:date>
    <item>
      <title>get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111377#M889330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date1 field . i want to create an another field date2 which will be the date1 +3 days but should exclude weekends like saturday and sunday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111377#M889330</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111378#M889331</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;Do you mean the base date(Date1) should not be the Saturday Sunday?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(not Wildmatch(Weekday(Date1),'Sat','Sun'),Date(Date1 + 3)) as Date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want Date2 to exclude the Saturday and Sunday, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="font-size: 13.3333px;"&gt;not Wildmatch(Weekday(Date(Date1+3)),'Sat','Sun'),Date(Date1 + 3)) as Date2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111378#M889331</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-30T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111379#M889332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Date1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(weekday(Date1)&amp;lt;&amp;gt;'Sat' or weekday(Date1)&amp;lt;&amp;gt;'Sun', num(Date1)+3) as Date2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111379#M889332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111380#M889333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bionod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming your date is a date number (integer like 43255) and fieldname is DayNr (check with klistbox and change format to Integer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * where Day &amp;lt;&amp;gt; 'Sa' and Day &amp;lt;&amp;gt; 'Su'; //Deselect the Saturdays and Sundays you can do this also with daynumer (of the week)&lt;/P&gt;&lt;P&gt;Weekday(NewDayNr) as Day&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;DayNr + 3 as NewDayNr&lt;/P&gt;&lt;P&gt;resident YourTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111380#M889333</guid>
      <dc:creator />
      <dc:date>2016-08-30T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111381#M889334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Binod,&lt;/P&gt;&lt;P&gt;You can calculate de weekday, if it is on weekend you can add more days, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date+3+IF(WeekDay(Date+3) = 0,1,IF(WeekDay(Date+3) = 6,2,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111381#M889334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111382#M889335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try lastworkdate which doesnot calculate Weekends&lt;/P&gt;&lt;P&gt;lastworkdate(date1,3) as date2&lt;/P&gt;&lt;P&gt;if date1+3 is a Weekend, the next monday will be defined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111382#M889335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T07:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: get a date excluding the weekends in load script</title>
      <link>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111383#M889336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes my base date will always be date1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-a-date-excluding-the-weekends-in-load-script/m-p/1111383#M889336</guid>
      <dc:creator />
      <dc:date>2016-08-30T07:49:18Z</dc:date>
    </item>
  </channel>
</rss>

