<?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 Find difference between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-difference-between-two-dates/m-p/391278#M696797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to find date difference in days between two dates say D1 and D1 i.e. (D1-D2)&lt;/P&gt;&lt;P&gt;But in that case Holydays and some week days should be removed and not considered.&lt;/P&gt;&lt;P&gt;Networkdays function not working in this case&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;1) Find the date difference between two dates in days and remove all Mondays and holydays (Saturdays must be considered must not be removed)&lt;/P&gt;&lt;P&gt;2) Find the date difference between two dates in days and remove only 2nd and 4th Saturdays and holydays etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 05:16:49 GMT</pubDate>
    <dc:creator>nayanpatel</dc:creator>
    <dc:date>2013-03-26T05:16:49Z</dc:date>
    <item>
      <title>Find difference between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-difference-between-two-dates/m-p/391278#M696797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to find date difference in days between two dates say D1 and D1 i.e. (D1-D2)&lt;/P&gt;&lt;P&gt;But in that case Holydays and some week days should be removed and not considered.&lt;/P&gt;&lt;P&gt;Networkdays function not working in this case&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;1) Find the date difference between two dates in days and remove all Mondays and holydays (Saturdays must be considered must not be removed)&lt;/P&gt;&lt;P&gt;2) Find the date difference between two dates in days and remove only 2nd and 4th Saturdays and holydays etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 05:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-difference-between-two-dates/m-p/391278#M696797</guid>
      <dc:creator>nayanpatel</dc:creator>
      <dc:date>2013-03-26T05:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find difference between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-difference-between-two-dates/m-p/391279#M696798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arrive a field (flag) in your script for working days by implementing all your conditions, and then use this flag in expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;DateField={'&amp;gt;=$(=vStartDate)&amp;lt;=$(=vEndDate)'} IsWorkingDay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression where DateField is your dimension name, and IsWorkingDay is a flag which has value 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 06:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-difference-between-two-dates/m-p/391279#M696798</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-26T06:06:54Z</dc:date>
    </item>
  </channel>
</rss>

