<?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: Define Quarter? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957634#M967620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;josna g,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script add the folowing line for your date field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(&amp;lt;datefield&amp;gt;) &amp;amp; Ceil(Month(&amp;lt;datefield&amp;gt;)/3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As YearQuarter&lt;/P&gt;&lt;P&gt;to show YearQuarter as 20151, 20152, etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or with some formatting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year(&amp;lt;datefield&amp;gt;) &amp;amp; NUM(Ceil(Month(&amp;lt;datefield&amp;gt;)/3), '00')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As YearQuarter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to show YearQuarter as 201501, 201502, etc..&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 11:26:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-29T11:26:40Z</dc:date>
    <item>
      <title>Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957628#M967614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the Date field by using this field how can I Define the Quarter , yearQrtr ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957628#M967614</guid>
      <dc:creator />
      <dc:date>2015-09-29T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957629#M967615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Q' &amp;amp; Ceil(Month(DateField)/3) as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year(Date) &amp;amp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;'Q' &amp;amp; Ceil(Month(DateField)/3) as YearQuarter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can also try this for YearQuarter:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Year(Date) &amp;amp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;'Q' &amp;amp; Ceil(Month(DateField)/3), Num#(Year(Date) &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Ceil(Month(DateField)/3), '##')) as YearQuarter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957629#M967615</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-29T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957630#M967616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100314_Capture.PNG" style="height: 305px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957630#M967616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-29T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957631#M967617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to explicitly convert the date into quarters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see below expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;'Q' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 18.6667px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;ceil(Num(month([$(_datefield)]))/3) as [$(_prefix)Qtr]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 18.6667px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957631#M967617</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-29T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957632#M967618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q means naming convention&amp;nbsp; right.&lt;/P&gt;&lt;P&gt;What is the use of Ceil and why u r using the Ceil beforedate function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957632#M967618</guid>
      <dc:creator />
      <dc:date>2015-09-29T11:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957633#M967619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&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; font-size: 13px;"&gt;'Q' &amp;amp; ceil(month(Date_field)/3) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;yearQrtr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Pallav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957633#M967619</guid>
      <dc:creator />
      <dc:date>2015-09-29T11:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957634#M967620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;josna g,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script add the folowing line for your date field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(&amp;lt;datefield&amp;gt;) &amp;amp; Ceil(Month(&amp;lt;datefield&amp;gt;)/3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As YearQuarter&lt;/P&gt;&lt;P&gt;to show YearQuarter as 20151, 20152, etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or with some formatting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year(&amp;lt;datefield&amp;gt;) &amp;amp; NUM(Ceil(Month(&amp;lt;datefield&amp;gt;)/3), '00')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As YearQuarter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to show YearQuarter as 201501, 201502, etc..&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957634#M967620</guid>
      <dc:creator />
      <dc:date>2015-09-29T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Define Quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957635#M967621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ceil is just used for rounding up the Month/3. So if you have January (which is also month number 1), you will have &lt;STRONG&gt;Ceil(1/3) = Ceil(0.33333) = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feb -&amp;gt; Ceil(2/3) = Ceil(0.66666) = 1 and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Quarter/m-p/957635#M967621</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-29T11:54:50Z</dc:date>
    </item>
  </channel>
</rss>

