<?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 How to Retrieve Quarter from the Date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143113#M22457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use this expression in our reload script to generate a quarter (Q1/Q2/Q3/Q4) for the transaction date.&lt;BR /&gt;The expression takes divides the monthnumber by 3 and always rounds upwords CEIL() -&amp;gt; ceiling&lt;/P&gt;&lt;P&gt;For example&lt;BR /&gt;Monthnumber(5-10-2008)-&amp;gt;10&lt;BR /&gt;10/3=3.33&lt;BR /&gt;Ceil(3.33)=4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2009 16:17:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-01T16:17:33Z</dc:date>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143110#M22454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to retrieve the Quarter and period from the Date field?Please give me an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 15:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143110#M22454</guid>
      <dc:creator />
      <dc:date>2009-05-01T15:08:59Z</dc:date>
    </item>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143111#M22455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;'Q' &amp;amp; CEIL(MONTH(DATE(Transaction_Date)/3) AS Transaction_Quarter&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 15:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143111#M22455</guid>
      <dc:creator />
      <dc:date>2009-05-01T15:29:34Z</dc:date>
    </item>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143112#M22456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mark,&lt;/P&gt;&lt;P&gt;Could you please explain this expression. When do you divide by 3. Is there should be a closing braces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 15:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143112#M22456</guid>
      <dc:creator />
      <dc:date>2009-05-01T15:59:52Z</dc:date>
    </item>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143113#M22457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use this expression in our reload script to generate a quarter (Q1/Q2/Q3/Q4) for the transaction date.&lt;BR /&gt;The expression takes divides the monthnumber by 3 and always rounds upwords CEIL() -&amp;gt; ceiling&lt;/P&gt;&lt;P&gt;For example&lt;BR /&gt;Monthnumber(5-10-2008)-&amp;gt;10&lt;BR /&gt;10/3=3.33&lt;BR /&gt;Ceil(3.33)=4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 16:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143113#M22457</guid>
      <dc:creator />
      <dc:date>2009-05-01T16:17:33Z</dc:date>
    </item>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143114#M22458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;QuarterName(YourDate) is also a nice function and delivers a date, which then might be used like other numeric data (sorting, filtering, &amp;gt;, etc)&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 16:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143114#M22458</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-05-01T16:30:49Z</dc:date>
    </item>
    <item>
      <title>How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143115#M22459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi&amp;nbsp; ﻿mjanssen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a&amp;nbsp; lot for your simple trick.I was worrying in sqldeveloper,there also i have resolved it in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sushma K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 10:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143115#M22459</guid>
      <dc:creator />
      <dc:date>2011-05-12T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143116#M22460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Mark Janssen escribió:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="overflow-x: scroll;"&gt;&lt;PRE class="notranslate" style="margin: 0px;"&gt;&lt;BR /&gt;'Q' &amp;amp; CEIL(MONTH(DATE(Transaction_Date)/3) AS Transaction_Quarter&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; CEIL(MONTH(DATE(Transaction_Date)/3)&lt;STRONG style="font-size: 14pt;"&gt;)&lt;/STRONG&gt; AS Transaction_Quarter ------ This Calculate all Q from your data like this Q1 Q2 Q3 Q4 Q5....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 19:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143116#M22460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-29T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Retrieve Quarter from the Date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143117#M22461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Calculate de Q1 Q2 Q3 Q4...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;'Q' &amp;amp; CEIL(MONTH(Transaction_Date)/3)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; AS Transaction_Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 19:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Retrieve-Quarter-from-the-Date-field/m-p/143117#M22461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-29T19:53:29Z</dc:date>
    </item>
  </channel>
</rss>

