<?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: setting up a variable which will store only weekdays between 2 given dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853458#M1004351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can exclude US Holidays as well while calculating the date difference?&lt;/P&gt;&lt;P&gt;My dates ranges over the years, so cant hard code any particular date from a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 18:33:58 GMT</pubDate>
    <dc:creator>sayadutt</dc:creator>
    <dc:date>2015-05-26T18:33:58Z</dc:date>
    <item>
      <title>setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853456#M1004349</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;I have 2 date fields of the format m/d/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1 = Planned Date&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Field2 = Actual Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now I am setting up an variable to store the difference in these 2 dates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date#([Actual Date]) - Date#([Planned Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This expression works perfectly fine and returns the value in number of days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now I need this variable to calculate the difference of 2 dates based on weekdays only (ignoring Saturdays &amp;amp; Sundays)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So, if my Planned Date is 5/22/2015 and Actual Date is 5/26/2015, the variable should store 3 (Friday, Monday, Tuesday)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please suggest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 16:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853456#M1004349</guid>
      <dc:creator>sayadutt</dc:creator>
      <dc:date>2015-05-26T16:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853457#M1004350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into Networkdays(StartDate, EndDate) function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 16:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853457#M1004350</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-26T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853458#M1004351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can exclude US Holidays as well while calculating the date difference?&lt;/P&gt;&lt;P&gt;My dates ranges over the years, so cant hard code any particular date from a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 18:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853458#M1004351</guid>
      <dc:creator>sayadutt</dc:creator>
      <dc:date>2015-05-26T18:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853459#M1004352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the doc for NetWorkDays. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853459#M1004352</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-26T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853460#M1004353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;where can I find this doc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853460#M1004353</guid>
      <dc:creator>sayadutt</dc:creator>
      <dc:date>2015-05-26T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853461#M1004354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV doesn't know any country specific or global holidays. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need a table of the relevant holidays. Then load the table into QV, concatenate the values to a string and assign to a variable and use the variable as third argument to Networkdays() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/99176"&gt;how to take holidays into account to calculate remaining workdays&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853461#M1004354</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-26T19:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: setting up a variable which will store only weekdays between 2 given dates</title>
      <link>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853462#M1004355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Under "Help" in the QV menu. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 19:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-up-a-variable-which-will-store-only-weekdays-between-2/m-p/853462#M1004355</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-26T19:25:30Z</dc:date>
    </item>
  </channel>
</rss>

