<?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: Generate weekend dates between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1788065#M1210258</link>
    <description>&lt;P&gt;tweak this to your requirements and see if it will work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
load * where match(Day,'Sat','Sun')&amp;gt;0;
load date(start+iterno()-1) as Dt, weekday(date(start+iterno()-1)) as Day
while date(start+iterno()-1) &amp;lt; end
;
load * inline [
start, end
5/1/2020, 10/4/2020
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 20:04:29 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-03-03T20:04:29Z</dc:date>
    <item>
      <title>Generate weekend dates between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1787740#M1210224</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i have a change request data for each change number&amp;nbsp; has a Start date and End date . iam actually trying to generate the weekend dates between start and end date for each change number where the weekend should be less than end date, im using below script , but its not working, please suggest me how to achieve the same.&lt;/P&gt;&lt;P&gt;GCIO_All_Dates_Temp:&lt;BR /&gt;LOAD [Change Number],&lt;BR /&gt;Date([Scheduled Start (UTC)]+iterno()-1) as Date&lt;/P&gt;&lt;P&gt;resident GCIO while [Scheduled Start (UTC)]+IterNo()-1 &amp;lt;=[Scheduled End (UTC)];&lt;/P&gt;&lt;P&gt;left join (GCIO_All_Dates_Temp)&lt;/P&gt;&lt;P&gt;Max_Date:&lt;BR /&gt;Load [Change Number],&lt;BR /&gt;Date(Max(Date)) as Max_Date&lt;BR /&gt;Resident GCIO_All_Dates_Temp group by [Change Number] ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GCIO_All_Dates:&lt;BR /&gt;LOAD [Change Number],&lt;BR /&gt;Date,&lt;BR /&gt;WeekEnd(Date,0,0) as GCIO_Weekend_Date&lt;BR /&gt;Resident GCIO_All_Dates_Temp while WeekEnd(Date,0,0) &amp;lt; Max_Date ;&lt;/P&gt;&lt;P&gt;Drop Table GCIO_All_Dates_Temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 06:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1787740#M1210224</guid>
      <dc:creator>chaitanyajami</dc:creator>
      <dc:date>2021-03-03T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate weekend dates between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1788065#M1210258</link>
      <description>&lt;P&gt;tweak this to your requirements and see if it will work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
load * where match(Day,'Sat','Sun')&amp;gt;0;
load date(start+iterno()-1) as Dt, weekday(date(start+iterno()-1)) as Day
while date(start+iterno()-1) &amp;lt; end
;
load * inline [
start, end
5/1/2020, 10/4/2020
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1788065#M1210258</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-03T20:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate weekend dates between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1788066#M1210259</link>
      <description>&lt;P&gt;it will only give you weekends&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-weekend-dates-between-two-dates/m-p/1788066#M1210259</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-03T20:05:01Z</dc:date>
    </item>
  </channel>
</rss>

