<?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: Networkdays wrong from script, correct in UI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31009#M606714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Preceding load also returns me '17'. I tried with:&lt;/P&gt;&lt;P&gt;LOAD NetWorkDays(Date1,Date2) as value;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(date#('20.03.2018', 'DD.MM.YYYY'),'DD/MM/YYYY') as Date1,&lt;/P&gt;&lt;P&gt;Date(date#('11.04.2018', 'DD.MM.YYYY'),'DD/MM/YYYY') as Date2&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried a few things the retrive that '22' but I didn't accomplish, the only way is doing Date2-Date1, so that 22 it's counting all dates, not removing weekends.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 14:35:52 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2018-05-02T14:35:52Z</dc:date>
    <item>
      <title>Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31002#M606707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I calculate networkdays in the script but the results are wrong while using the same dates in a table in the UI are calculated correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These 2 dates:&amp;nbsp; 20/3/2018 to 11/4/2018 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculated in the script as 22 days&lt;/P&gt;&lt;P&gt;and in the UI as 17 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;17 Days is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates are loaded in this format 20.03.2018 but changed with this statement: date(date#(&amp;lt;datefields&amp;gt;,'DD.MM.YYYY')'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the calculation in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView 12 SR3 versio 12.20.20400.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31002#M606707</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2018-05-02T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31003#M606708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michiel, I make a document with this script:&lt;/P&gt;&lt;P&gt;LOAD NetWorkDays('20/03/2018','11/04/2018') as value&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value loads '17'. Can you post a sample that shows the problem, I can't reproduce it (I'm in different version)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 13:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31003#M606708</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-05-02T13:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31004#M606709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See original post for the example.&lt;/P&gt;&lt;P&gt;I tried this also and hardcoded dates in the correct format does calculate correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I expect qlikview to do the same with the date fields that are edited with date and date# functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31004#M606709</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2018-05-02T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31005#M606710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NetWorkDays(Date#('20.03.2018','DD.MM.YYYY'),Date#('11.04.2018','DD.MM.YYYY')) gives me 17&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31005#M606710</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-02T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31006#M606711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should, and this works too:&lt;/P&gt;&lt;P&gt;LOAD NetWorkDays(Date(date#('20.03.2018', 'DD.MM.YYYY'),'DD/MM/YYYY'),Date(date#('11.04.2018', 'DD.MM.YYYY'),'DD/MM/YYYY')) as value&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I'm askjing for a sample, there should be something else, I'm not sure if the different version is the only reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31006#M606711</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-05-02T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31007#M606712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have just 2 dates, the 2 dates mentioned are just examples.&lt;/P&gt;&lt;P&gt;I have 2 fields with all the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31007#M606712</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2018-05-02T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31008#M606713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange why setting the date formats inside the networkdays function does the trick.&lt;/P&gt;&lt;P&gt;I did a preceding load thus calling the edited date formats and that does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31008#M606713</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2018-05-02T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays wrong from script, correct in UI</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31009#M606714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Preceding load also returns me '17'. I tried with:&lt;/P&gt;&lt;P&gt;LOAD NetWorkDays(Date1,Date2) as value;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(date#('20.03.2018', 'DD.MM.YYYY'),'DD/MM/YYYY') as Date1,&lt;/P&gt;&lt;P&gt;Date(date#('11.04.2018', 'DD.MM.YYYY'),'DD/MM/YYYY') as Date2&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried a few things the retrive that '22' but I didn't accomplish, the only way is doing Date2-Date1, so that 22 it's counting all dates, not removing weekends.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-wrong-from-script-correct-in-UI/m-p/31009#M606714</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-05-02T14:35:52Z</dc:date>
    </item>
  </channel>
</rss>

