<?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: Converting month numbers to Quarters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/2423147#M1225381</link>
    <description>&lt;P&gt;I was able to accomplish this with the following code tweak... thanks !&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Booking Month, Booking Quarter&lt;/P&gt;
&lt;P&gt;Jan, Q1&lt;/P&gt;
&lt;P&gt;Feb, Q1&lt;/P&gt;
&lt;P&gt;Mar, Q1&lt;/P&gt;
&lt;P&gt;Apr, Q2&lt;/P&gt;
&lt;P&gt;May, Q2&lt;/P&gt;
&lt;P&gt;Jun, Q2&lt;/P&gt;
&lt;P&gt;Jul, Q3&lt;/P&gt;
&lt;P&gt;Aug, Q3&lt;/P&gt;
&lt;P&gt;Sep, Q3&lt;/P&gt;
&lt;P&gt;Oct, Q4&lt;/P&gt;
&lt;P&gt;Nov, Q4&lt;/P&gt;
&lt;P&gt;Dec, Q4&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2024 14:48:38 GMT</pubDate>
    <dc:creator>SouthsideFinance</dc:creator>
    <dc:date>2024-02-24T14:48:38Z</dc:date>
    <item>
      <title>Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609399#M1105042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my table I have a Column called ACCOUNTING_PERIOD and its values are 1-12 representing fiscal months. What is the easiest way to represent this column as a quarters?&lt;/P&gt;&lt;P&gt;Currently I am (trying to) using a list box and for field I am using expressions, and editing it little by little to see if I get it figured out.. However I have not been completely successful in doing this. The expressions I have come up with are based on what I have found while using google, and they are:&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;"&gt;If(Month(QuarterStart(OrderDate))='1',4,Div(Month(QuarterStart(OrderDate)),3))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(left(QuarterName(TempDate),7)='Jan-Mar','Q1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(QuarterName(TempDate),7)='Apr-Jun','Q2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(QuarterName(TempDate),7)='Jul-Sep','Q3','Q4')))&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I haven't had much luck when I have been adjusting these as expressions. So does anyone know of a simple expression that can help me achieve exactly what I am trying?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609399#M1105042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-21T19:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609400#M1105043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Take an&amp;nbsp; inline Table:&lt;/P&gt;&lt;P&gt;Load * inline[&lt;/P&gt;&lt;P&gt;Month_ID, Month, Quarater&lt;/P&gt;&lt;P&gt;1,Jan,Q1&lt;/P&gt;&lt;P&gt;2,Feb,Q1&lt;/P&gt;&lt;P&gt;3,Mar,Q1&lt;/P&gt;&lt;P&gt;4,Apr,Q2&lt;/P&gt;&lt;P&gt;5,May,Q2&lt;/P&gt;&lt;P&gt;6,Jun,Q2&lt;/P&gt;&lt;P&gt;7,Jul,Q3&lt;/P&gt;&lt;P&gt;8,Aug,Q3&lt;/P&gt;&lt;P&gt;9,Sep,Q3&lt;/P&gt;&lt;P&gt;10,Oct,Q4&lt;/P&gt;&lt;P&gt;11,Nov,Q4&lt;/P&gt;&lt;P&gt;12,Dec,Q4.&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;anyway u have monthid 's try to join on this fiedl, u will get month and Quarter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609400#M1105043</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2014-03-21T20:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609401#M1105044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your field is a date for example myDate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(month(myDate)&amp;lt;=3,'Q1', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(month(myDate)&amp;gt;=4 and month(myDate)&amp;lt;=6,'Q2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(month(myDate)&amp;gt;=7 and month(myDate)&amp;lt;=9, 'Q3',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q4'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609401#M1105044</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-21T20:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609402#M1105045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the Attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its Simple and easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this Code in your script and do replace the Date with your Date:&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(Num(Month(AddMonths(Date,0)))/3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;as [Fiscal Quarter]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609402#M1105045</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-03-21T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609403#M1105046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Date_Tmp')&amp;amp;'_'&amp;amp;Ceil(Month(Date_Tmp')/3)&amp;amp;'Q'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609403#M1105046</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2014-03-21T20:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609404#M1105047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I marked the one that was to me the easiest with out explanation to figure out. It may not be in an expression form, but I was able to get the results I wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to all who helped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609404#M1105047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-21T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609405#M1105048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Q' &amp;amp; ceil(num(month(floor(QuarterName(REPLACEWITHYOURDATE))))/3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/609405#M1105048</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-21T20:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting month numbers to Quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/2423147#M1225381</link>
      <description>&lt;P&gt;I was able to accomplish this with the following code tweak... thanks !&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Booking Month, Booking Quarter&lt;/P&gt;
&lt;P&gt;Jan, Q1&lt;/P&gt;
&lt;P&gt;Feb, Q1&lt;/P&gt;
&lt;P&gt;Mar, Q1&lt;/P&gt;
&lt;P&gt;Apr, Q2&lt;/P&gt;
&lt;P&gt;May, Q2&lt;/P&gt;
&lt;P&gt;Jun, Q2&lt;/P&gt;
&lt;P&gt;Jul, Q3&lt;/P&gt;
&lt;P&gt;Aug, Q3&lt;/P&gt;
&lt;P&gt;Sep, Q3&lt;/P&gt;
&lt;P&gt;Oct, Q4&lt;/P&gt;
&lt;P&gt;Nov, Q4&lt;/P&gt;
&lt;P&gt;Dec, Q4&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 14:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-month-numbers-to-Quarters/m-p/2423147#M1225381</guid>
      <dc:creator>SouthsideFinance</dc:creator>
      <dc:date>2024-02-24T14:48:38Z</dc:date>
    </item>
  </channel>
</rss>

