<?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: Problem With NetWorkDays Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339104#M837801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorenzo,&lt;/P&gt;&lt;P&gt;NetWorkDays(BSTORE20, TIMESTAMP20)&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;=&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;4/12/2016 is Sunday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2017 15:52:07 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-05-25T15:52:07Z</dc:date>
    <item>
      <title>Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339101#M837798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Cattura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164756_Cattura.JPG" style="width: 620px; height: 379px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Qlikview to create the field number D to get the number of working days that have elapsed, I have used this script:&lt;/P&gt;&lt;DIV class="tw-swapa"&gt;&amp;nbsp; &lt;/DIV&gt;&lt;DIV class="tw-swapa"&gt;&lt;STRONG&gt;NetWorkDays(BSTORE4A, TIMESTAMP4A) - 2 + (1 - Frac(BSTORE4A)) + Frac(TIMESTAMP4A) AS GIORNI_PASSATI_4B&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="tw-swapa"&gt; &lt;/DIV&gt;&lt;DIV class="tw-swapa"&gt;The script work correctly, but I have 5 values that are negative, without any reason, and I don't understand why. Someone can I help me?&lt;/DIV&gt;&lt;DIV class="tw-swapa"&gt; &lt;/DIV&gt;&lt;DIV class="tw-swapa"&gt;Thank You&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339101#M837798</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339102#M837799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In you formula, you refer to a field named TIMESTAMP4A, but in your attached pic you show a field named TIMESTAMP20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339102#M837799</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-25T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339103#M837800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Sorry, I did copy-paste from another script to test. The correct script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays(BSTORE20, TIMESTAMP20) - 2 + (1 - Frac(BSTORE20)) + Frac(TIMESTAMP20) AS GIORNI_PASSATI_4B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem remain. The script work fine but I have that strange 5 values&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339103#M837800</guid>
      <dc:creator />
      <dc:date>2017-05-25T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339104#M837801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lorenzo,&lt;/P&gt;&lt;P&gt;NetWorkDays(BSTORE20, TIMESTAMP20)&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;=&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;4/12/2016 is Sunday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339104#M837801</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-25T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339105#M837802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Ohhh man you're Amazing!!! I didn't think that the First date was on a festive day. Thanks you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 16:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339105#M837802</guid>
      <dc:creator />
      <dc:date>2017-05-25T16:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339106#M837803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;For the first row:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NetWorkDays(BSTORE20, TIMESTAMP20) = 22, but you are getting the answer 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Look at your data in QlikView. I suspect that the values for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BSTORE20 and/or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TIMESTAMP20 are not valid timestamps in Qlikview (they are probably strings that look like timestamps). When you send them to Excel, Excel interprets them as timestamps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 16:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339106#M837803</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-25T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339107#M837804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date/Timestamp Format is DD/MM/YYYY (Italy standard)&lt;/P&gt;&lt;P&gt;and 03/12-04/12/2016 are festive days.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339107#M837804</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-25T17:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339108#M837805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="test3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164768_test3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339108#M837805</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-25T17:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339109#M837806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are You setting date/Timestamp format to DD/MM/YYYY ?&lt;/P&gt;&lt;P&gt;3 dec 2016 and 4 dec 2016&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339109#M837806</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-25T17:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With NetWorkDays Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339110#M837807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio, That would have never occurred to me. I think you are correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-With-NetWorkDays-Function/m-p/1339110#M837807</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-25T17:56:25Z</dc:date>
    </item>
  </channel>
</rss>

