<?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 Networkdays holidays in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236982#M88105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created some variables on my system with holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load a new table where Field data is exactly as variable name, and I want to call that variable to get holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 '01/01/2010','02/01/2010','18/08/2010'&lt;/P&gt;&lt;P&gt;2 '02/02/2010','15/07/2011'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE&lt;/P&gt;&lt;P&gt;FIELDA,FROM,TO&lt;/P&gt;&lt;P&gt;1,17/07/2010,25/08/2010&lt;/P&gt;&lt;P&gt;1,20/08/2010,25/08/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2,17/07/2010,25/08/2010&lt;/P&gt;&lt;P&gt;2,20/08/2010,25/08/2010&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;networkdays(FROM,TO,$(FIELDA)) AS BLA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the holidays variable that name = FIELDA value in each reg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 08:17:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-29T08:17:07Z</dc:date>
    <item>
      <title>Networkdays holidays</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236982#M88105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created some variables on my system with holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load a new table where Field data is exactly as variable name, and I want to call that variable to get holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 '01/01/2010','02/01/2010','18/08/2010'&lt;/P&gt;&lt;P&gt;2 '02/02/2010','15/07/2011'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE&lt;/P&gt;&lt;P&gt;FIELDA,FROM,TO&lt;/P&gt;&lt;P&gt;1,17/07/2010,25/08/2010&lt;/P&gt;&lt;P&gt;1,20/08/2010,25/08/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2,17/07/2010,25/08/2010&lt;/P&gt;&lt;P&gt;2,20/08/2010,25/08/2010&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;networkdays(FROM,TO,$(FIELDA)) AS BLA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the holidays variable that name = FIELDA value in each reg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 08:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236982#M88105</guid>
      <dc:creator />
      <dc:date>2010-07-29T08:17:07Z</dc:date>
    </item>
    <item>
      <title>Networkdays holidays</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236983#M88106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jordi&lt;/P&gt;&lt;P&gt;I use this script:&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; Load holiday data for working day calculations&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;tmpHoliday:&lt;BR /&gt;LOAD [PUBLIC HOLIDAY] AS Holiday,&lt;BR /&gt; Date([DATE], 'yyyy/MM/dd') as Date&lt;BR /&gt;// chr(39) &amp;amp; Date([DATE], 'yyyy/MM/dd') &amp;amp; chr(39) as Date&lt;BR /&gt;FROM [..\QVDATA\Public Holidays.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;// Save holidays as a string (comma separated list of&lt;BR /&gt;// single quoted dates) into the variable vPublicHolidays&lt;BR /&gt;tmpConcat:&lt;BR /&gt;LOAD concat(chr(39) &amp;amp; Date &amp;amp; chr(39),',') AS HolidayDates&lt;BR /&gt;RESIDENT tmpHoliday;&lt;BR /&gt;&lt;BR /&gt;LET vPublicHolidays = fieldvalue('HolidayDates',1);&lt;BR /&gt;&lt;BR /&gt;// The holiday tables are not needed&lt;BR /&gt;DROP TABLE tmpHoliday;&lt;BR /&gt;DROP TABLE tmpConcat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses a spreadsheet with the two columns&lt;/P&gt;&lt;P&gt;PUBLIC HOLIDAY - name of holiday&lt;BR /&gt;DATE - date of holiday&lt;/P&gt;&lt;P&gt;The result variable is vPublicHolidays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not handle ranges like your example, but neither do the working day formulae in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 08:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236983#M88106</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Networkdays holidays</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236984#M88107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your source all holidays are on one variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my case, each variable has his own holidays, and i need to use in each record diferent variables and not only vPublicHolidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 09:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-holidays/m-p/236984#M88107</guid>
      <dc:creator />
      <dc:date>2010-07-29T09:01:49Z</dc:date>
    </item>
  </channel>
</rss>

