<?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() shows wrong results when used between two table rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030714#M935036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im using this:&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(Date_entree_dans_la_ged,Date_de_traitement)&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;im using the fields in my table&amp;nbsp; to calculate time between each line not static dates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 07:34:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-26T07:34:41Z</dc:date>
    <item>
      <title>Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030712#M935034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using networkdays() to calculate the time duration between two date fields , it's showing correct answers when the two dates are from the same year but when the dates are from differents years the answers are not correct. has anyone here got the same problem using the formula ?&lt;/P&gt;&lt;P&gt;I'm using networkdays as an expression in a table between the two date dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030712#M935034</guid>
      <dc:creator />
      <dc:date>2016-02-25T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030713#M935035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't reproduce this here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NetWorkDays(MakeDate(2015,12,1),MakeDate(2016,1,27))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns 42.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your expression look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030713#M935035</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-25T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030714#M935036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im using this:&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(Date_entree_dans_la_ged,Date_de_traitement)&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;im using the fields in my table&amp;nbsp; to calculate time between each line not static dates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 07:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030714#M935036</guid>
      <dc:creator />
      <dc:date>2016-02-26T07:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030715#M935037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date_de_traitement - Date_entree_dans_la_ged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return as expression in your chart for the records with incorrect results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your script code look like that generate these fields (reason why I am asking: Maybe the underlying numeric values is not really representing the date shown as text).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, please post a small sample QVW that demonstrates your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030715#M935037</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-26T16:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030716#M935038</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;=(Date_de_traitement - Date_entree_dans_la_ged)&amp;nbsp; also show's the wrong answers when the dates are from different years.&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;I'm getting the two date fields from a View in sql server under this format yyyymmdd and i transform them to the new format at the script using : date(date#("DATE_FIELD",'yyyymmdd'),'dd/mm/yyyy').&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;I will try to make a small QVW sample soon to demonstrates the issue.&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;Thank you again for your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030716#M935038</guid>
      <dc:creator />
      <dc:date>2016-02-26T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Networkdays() shows wrong results when used between two table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030717#M935039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using exactely this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#("DATE_FIELD",'yyyymmdd'),'dd/mm/yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the format code for month is 'MM', not 'mm', which is the code for minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#("DATE_FIELD",'YYYYMMDD'),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 17:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Networkdays-shows-wrong-results-when-used-between-two-table-rows/m-p/1030717#M935039</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-26T17:31:27Z</dc:date>
    </item>
  </channel>
</rss>

