<?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: How to calculate difference between two dates in months - rounding to 1 decimal place in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000456#M963585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping for an explanation of the formula I sent.&amp;nbsp; Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 20:49:57 GMT</pubDate>
    <dc:creator>triciagdaly</dc:creator>
    <dc:date>2015-10-16T20:49:57Z</dc:date>
    <item>
      <title>How to calculate difference between two dates in months - rounding to 1 decimal place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000454#M963583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to calculate the difference in months between two dates but needing to round to one decimal place.&amp;nbsp; I found the below on the forum, but do not understand the format.&amp;nbsp; It is returning the number rounded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needing the difference between today and EFFECTIVE_DATE rounded to 1 decimal place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2))*12)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2))) - (((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*12)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 20:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000454#M963583</guid>
      <dc:creator>triciagdaly</dc:creator>
      <dc:date>2015-10-16T20:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between two dates in months - rounding to 1 decimal place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000455#M963584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link out by &lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌: &lt;A href="https://community.qlik.com/docs/DOC-3836"&gt;Calculating Months difference between two dates&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 20:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000455#M963584</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-16T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between two dates in months - rounding to 1 decimal place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000456#M963585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping for an explanation of the formula I sent.&amp;nbsp; Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 20:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000456#M963585</guid>
      <dc:creator>triciagdaly</dc:creator>
      <dc:date>2015-10-16T20:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between two dates in months - rounding to 1 decimal place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000457#M963586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your formula just calculates difference between two integers (using sequential month numbers started in Jan 0000 for two dates), you can't calculate something with significant decimal places from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a thread that covers some alternatives and also tries to explain the difficulty in defining a 'month' distance between dates:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/47580"&gt;How Do I Get the Number of Months Between Two Dates?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;And if you want a more accurate calculation of date difference in Year,Month, Days, maybe use something like&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/114921"&gt;day month year shows two dates qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 23:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-two-dates-in-months-rounding/m-p/1000457#M963586</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-16T23:46:47Z</dc:date>
    </item>
  </channel>
</rss>

