<?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: Calculating number of Quarters between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261174#M98472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;year(enddate)*4 + ceil(month(enddate)/3) - year(startdate)*4 - ceil(month(startdate)/3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not normally what I think of when I think "how many quarters are in this range", though.&amp;nbsp; For instance, I believe that datediff(q, Jan 1 2011, Dec 31 2011) returns 3, even though the date range is a full four quarters.&amp;nbsp; That's because we only cross 3 quarter boundaries, and datediff is counting boundary crossings, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 21:34:05 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-08-09T21:34:05Z</dc:date>
    <item>
      <title>Calculating number of Quarters between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261173#M98471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to find a way to calculate the number of quarters between a start date and an end date. I believe this is straightforward to do with a DateDiff function, but I cannot see anything similar in QlikView. Any help greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261173#M98471</guid>
      <dc:creator />
      <dc:date>2011-08-09T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating number of Quarters between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261174#M98472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;year(enddate)*4 + ceil(month(enddate)/3) - year(startdate)*4 - ceil(month(startdate)/3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not normally what I think of when I think "how many quarters are in this range", though.&amp;nbsp; For instance, I believe that datediff(q, Jan 1 2011, Dec 31 2011) returns 3, even though the date range is a full four quarters.&amp;nbsp; That's because we only cross 3 quarter boundaries, and datediff is counting boundary crossings, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261174#M98472</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-09T21:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating number of Quarters between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261175#M98473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many thanks John - this is exactly what I required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 08:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-number-of-Quarters-between-dates/m-p/261175#M98473</guid>
      <dc:creator />
      <dc:date>2011-08-10T08:21:39Z</dc:date>
    </item>
  </channel>
</rss>

