<?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: Not getting the correct quarter number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262267#M1184058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see the attached image, but you have a parenthesis moved, the correct syntax is to divide the month into 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(Date(Date#(OrderDate, 'YYYYMMDD'),'DD-MM-YYYY')) /3) AS Quarter,&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 09:33:53 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-10-20T09:33:53Z</dc:date>
    <item>
      <title>Not getting the correct quarter number</title>
      <link>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262266#M1184057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the field quarter that doesn't show the correct quarter numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the script below, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(Date(Date#(OrderDate, 'YYYYMMDD'),'DD-MM-YYYY') /3)) as Quarter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderDate is a string therefore I used the Date# to translate it to a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get these results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iSam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 09:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262266#M1184057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-20T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the correct quarter number</title>
      <link>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262267#M1184058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see the attached image, but you have a parenthesis moved, the correct syntax is to divide the month into 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(Date(Date#(OrderDate, 'YYYYMMDD'),'DD-MM-YYYY')) /3) AS Quarter,&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 09:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262267#M1184058</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-20T09:33:53Z</dc:date>
    </item>
    <item>
      <title>Not getting the correct quarter number</title>
      <link>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262268#M1184059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a misplace ) sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(Date#(OrderDate, 'YYYYMMDD')) / 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QuarterName(Date#(OrderDate, 'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 09:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-getting-the-correct-quarter-number/m-p/262268#M1184059</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-20T09:37:24Z</dc:date>
    </item>
  </channel>
</rss>

