<?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 Display a duration in months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-a-duration-in-months/m-p/145381#M505588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I looked at function "interval" and its formats.&lt;/P&gt;&lt;P&gt;I'd like to display a duration "in months" between 2 dates ?&lt;/P&gt;&lt;P&gt;I don't know why but the expression I wrote doesn't give the right answer ...&lt;/P&gt;&lt;P&gt;Here it is :&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '&amp;amp;interval((Now() - Min(TKT_CHANGE_DATE)), 'MM hh:mm')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '&amp;amp;interval((Now() - Min(TKT_CHANGE_DATE)), 'MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the hours hh:mm are ok, but the values in days are &amp;gt; 30, and values in MM it still 0 ... in both cases !&lt;/P&gt;&lt;P&gt;What is wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2009 15:00:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-29T15:00:13Z</dc:date>
    <item>
      <title>Display a duration in months</title>
      <link>https://community.qlik.com/t5/QlikView/Display-a-duration-in-months/m-p/145381#M505588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I looked at function "interval" and its formats.&lt;/P&gt;&lt;P&gt;I'd like to display a duration "in months" between 2 dates ?&lt;/P&gt;&lt;P&gt;I don't know why but the expression I wrote doesn't give the right answer ...&lt;/P&gt;&lt;P&gt;Here it is :&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '&amp;amp;interval((Now() - Min(TKT_CHANGE_DATE)), 'MM hh:mm')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; '&amp;amp;interval((Now() - Min(TKT_CHANGE_DATE)), 'MM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the hours hh:mm are ok, but the values in days are &amp;gt; 30, and values in MM it still 0 ... in both cases !&lt;/P&gt;&lt;P&gt;What is wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 15:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-a-duration-in-months/m-p/145381#M505588</guid>
      <dc:creator />
      <dc:date>2009-05-29T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Display a duration in months</title>
      <link>https://community.qlik.com/t5/QlikView/Display-a-duration-in-months/m-p/145382#M505589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oliver,&lt;BR /&gt;MM format doesn't work with interval function. It accepts only days (DD), hours(hh), minutes(mm), and seconds(ss). I assume it is so because month is not a constant time span.&lt;BR /&gt;You can use intrval in days divided by 30, or use a more complex logic if really necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 20:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-a-duration-in-months/m-p/145382#M505589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-29T20:00:41Z</dc:date>
    </item>
  </channel>
</rss>

