<?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: What is wrong with my working days function? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1744256#M57066</link>
    <description>&lt;P&gt;Thank you that solved my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed that in the documentation for the function it says each period requires a start and end date - my data had just previously been a list of single dates for each holiday date. So I changed this also.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 10:55:34 GMT</pubDate>
    <dc:creator>mgDev</dc:creator>
    <dc:date>2020-09-16T10:55:34Z</dc:date>
    <item>
      <title>What is wrong with my working days function?</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1743493#M56989</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Really hoping someone can help me with the problem I am facing here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of holiday dates stored in a qvd and am trying to use LastWorkDate() to add 3 working days to a date.&lt;/P&gt;&lt;P&gt;Here is how I assign it to a variable;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;[Holidays]:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;LOAD concat([Date],',') as [Date] FROM [lib://QVDs/HOLIDAYS.qvd](qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;LET vHolidays = peek([Date]);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;Drop table [Holidays];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is how I then use the variable;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;if([Alter Stock]='Adjust',date(LastWorkDate([Dock Date],4,$(vHolidays))),null()) as [New Stock],&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is the contents of the qvd;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mgDev_0-1600073858828.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40464i231F3C63911AFBFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mgDev_0-1600073858828.png" alt="mgDev_0-1600073858828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have for example 25/12/2020 listed as a holiday day - but when I come to use 'New Stock' field it still has 25/12/2020 as a result.&lt;/P&gt;&lt;P&gt;What have I done wrong please?&lt;/P&gt;&lt;P&gt;Happy to provide more info if required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1743493#M56989</guid>
      <dc:creator>mgDev</dc:creator>
      <dc:date>2024-11-16T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my working days function?</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1743624#M56998</link>
      <description>&lt;P&gt;Try by adding single quotes using Chr(39) around your holidays&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Holidays]:
LOAD Concat(Chr(39) &amp;amp; [Date] &amp;amp; Chr(39), ',') as [Date]
FROM [lib://QVDs/HOLIDAYS.qvd] (qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 14:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1743624#M56998</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-14T14:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my working days function?</title>
      <link>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1744256#M57066</link>
      <description>&lt;P&gt;Thank you that solved my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed that in the documentation for the function it says each period requires a start and end date - my data had just previously been a list of single dates for each holiday date. So I changed this also.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 10:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-is-wrong-with-my-working-days-function/m-p/1744256#M57066</guid>
      <dc:creator>mgDev</dc:creator>
      <dc:date>2020-09-16T10:55:34Z</dc:date>
    </item>
  </channel>
</rss>

