<?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: Exclude weekends in for loop load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639370#M595613</link>
    <description>&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;It's working...&lt;/P&gt;&lt;P&gt;One more thing.. how to exclude public holidays in that?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 09:05:37 GMT</pubDate>
    <dc:creator>ranganadh1979</dc:creator>
    <dc:date>2019-10-24T09:05:37Z</dc:date>
    <item>
      <title>Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638870#M595609</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;May i know how to exclude the weekends in my for loop load script in qlikview?&lt;/P&gt;&lt;P&gt;I have 2 date variables. start date and end date. Start date is static. I am loading the data per day by using for loop and storing in a qvd based on end date variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to load only work days(monday to friday) not weekends(Saturday and Sunday) in my for loop.&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638870#M595609</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2024-11-16T02:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638914#M595610</link>
      <description>&lt;P&gt;Can you share the script that you currently have?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 11:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638914#M595610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-23T11:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638956#M595611</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks for your reply. please find the below script.&lt;/P&gt;&lt;P&gt;let vDatefrom=Floor('2019-09-30');//Floor(yearstart(Today()));&lt;BR /&gt;let vDateTo=Floor(Today());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let vApiStartDate= date($(vDatefrom),'DD%20MMMM%20YYYY');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for i=$(vDatefrom) to $(vDateTo)&lt;/P&gt;&lt;P&gt;let vApiEndDate= date($(i),'DD%20MMMM%20YYYY');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Fact_Table:&lt;BR /&gt;LOAD *&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[http://***/***/Report?api-key=***&amp;amp;reportname=Complete%20TB%20Report&amp;amp;headers=TRUE&amp;amp;arg1=$(vApiStartDate)&amp;amp;arg2=$(vApiEndDate)&amp;amp;response-type=csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;LOAD *&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[C:\UsersQVD\Full_Load.qvd](qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;store Fact_Table into C:\UsersQVD\Full_Load.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop table Fact_Table;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to load all dates in the for loop. i want to load only week days data and append into qvd.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638956#M595611</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2019-10-23T12:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638971#M595612</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vDatefrom = Num(MakeDate(2019, 9, 30));//Floor(yearstart(Today()));
LET vDateTo = Num(Today());

LET vApiStartDate = Date($(vDatefrom),'DD%20MMMM%20YYYY');

FOR i = $(vDatefrom) to $(vDateTo)

	LET vApiEndDate = Date($(i),'DD%20MMMM%20YYYY');
	LET vDay = WeekDay($(i));
	If '$(vDay)' &amp;lt;&amp;gt; 'Sun' and '$(vDay)' &amp;lt;&amp;gt; 'Sat' THEN
	
		LOAD '$(vApiEndDate)' as ApiEndDate,
			 '$(vDay)' as WeekDay
		AutoGenerate 1;
	
	ENDIF
	
NEXT&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1638971#M595612</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-23T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639370#M595613</link>
      <description>&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;It's working...&lt;/P&gt;&lt;P&gt;One more thing.. how to exclude public holidays in that?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639370#M595613</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2019-10-24T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639423#M595614</link>
      <description>&lt;P&gt;Each country have it's own public holiday. and sometimes the list changes based on what you observe... you need to supply the list and then it can be done&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 10:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639423#M595614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-24T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude weekends in for loop load script</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639596#M595615</link>
      <description>&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;i sorted out..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-weekends-in-for-loop-load-script/m-p/1639596#M595615</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2019-10-24T15:34:25Z</dc:date>
    </item>
  </channel>
</rss>

