<?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: Date Difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694131#M251016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question, you want to show 212 in the resulting table instead of 636.&lt;/P&gt;&lt;P&gt;In that case you can just change the Total Mode to "max" on the Expressions tab of you table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 07:14:49 GMT</pubDate>
    <dc:creator>geert_gelade</dc:creator>
    <dc:date>2014-09-15T07:14:49Z</dc:date>
    <item>
      <title>Date Difference</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694130#M251015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following script to&amp;nbsp; calculate the Days_left&lt;/P&gt;&lt;P&gt;num(makedate(2014,8,31))&amp;gt;0, num(POL_PERIOD_TO)- num(makedate(2014,8,31)),0) as DAYS_LEFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting table is as follows and Total of Days_Left sum to 636 where as Actual number of Days_left is 212&lt;/P&gt;&lt;P&gt;How can I restrict the No of Days_left appear as 212 (modification to Script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 450px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="80"&gt;POLICY_NO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="123"&gt;POL_PERIOD_FROM&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="85"&gt;POL_PERIOD_TO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;RISK_DATE&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;DAYS_LEFT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;NC52&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2015&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;NC52&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2015&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12-Aug-2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;NC52&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;31-Mar-2015&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11-Aug-2014&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;Total&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;636&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 07:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694130#M251015</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-09-15T07:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694131#M251016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question, you want to show 212 in the resulting table instead of 636.&lt;/P&gt;&lt;P&gt;In that case you can just change the Total Mode to "max" on the Expressions tab of you table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 07:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694131#M251016</guid>
      <dc:creator>geert_gelade</dc:creator>
      <dc:date>2014-09-15T07:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694132#M251017</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;Try Interval() to get the date difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;POL_PERIOD_TO - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;makedate(2014,8,31), 'D')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Num(POL_PERIOD_TO) - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;makedate(2014,8,31)&lt;/SPAN&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;"&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;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 07:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference/m-p/694132#M251017</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-15T07:21:47Z</dc:date>
    </item>
  </channel>
</rss>

