<?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: Subtracting dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtracting-dates/m-p/1000822#M646365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(Date#('9999-12-31','YYYY-MM-DD')) is equal to 2958465&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;therefore you can try like&lt;/P&gt;&lt;P&gt;if(num([Disciplinary Interview Outcome Date])=2958465,&lt;/P&gt;&lt;P&gt;num(Today())-num([Date of Alleged Offence]),&lt;/P&gt;&lt;P&gt;num([Disciplinary Interview Outcome Date])-num([Date of Alleged Offence])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 10:44:18 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2015-11-16T10:44:18Z</dc:date>
    <item>
      <title>Subtracting dates</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates/m-p/1000821#M646364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;Hi &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;I need some help with calculating close days for cases &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;If the cases are still open (Case Completed Field) the &lt;STRONG&gt;Disciplinary&lt;BR /&gt;Interview Outcome Date&lt;/STRONG&gt; = &lt;STRONG&gt;9999-12-31.&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-size: 9pt; font-family: 'Tahoma','sans-serif'; text-decoration: underline;"&gt;So for &lt;STRONG&gt;open days on open cases &lt;/STRONG&gt;I use this formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;())-&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Date of Alleged Offence]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #404040; font-size: 9pt; text-decoration: underline; font-family: 'Tahoma','sans-serif';"&gt;Close days on close cases &lt;/STRONG&gt;&lt;SPAN style="color: #404040; font-size: 9pt; font-family: 'Tahoma','sans-serif'; text-decoration: underline;"&gt;I use this formula:&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Disciplinary Interview Outcome Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Date of Alleged Offence]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;I would like to use one formula for open and closed cases to&lt;BR /&gt;calculate &lt;STRONG&gt;Case Days. &lt;/STRONG&gt;Could you assist with a possible solution or if&lt;BR /&gt;statement?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;My problem is that it shows &lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Tahoma','sans-serif';"&gt;2 917 832&lt;/STRONG&gt; &lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt;days&lt;BR /&gt;for open cases on my close case days formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Days.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105538_Days.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: 'Tahoma','sans-serif'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates/m-p/1000821#M646364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T07:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting dates</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-dates/m-p/1000822#M646365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(Date#('9999-12-31','YYYY-MM-DD')) is equal to 2958465&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;therefore you can try like&lt;/P&gt;&lt;P&gt;if(num([Disciplinary Interview Outcome Date])=2958465,&lt;/P&gt;&lt;P&gt;num(Today())-num([Date of Alleged Offence]),&lt;/P&gt;&lt;P&gt;num([Disciplinary Interview Outcome Date])-num([Date of Alleged Offence])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 10:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-dates/m-p/1000822#M646365</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-11-16T10:44:18Z</dc:date>
    </item>
  </channel>
</rss>

