<?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: Dates; changing months into quarters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423148#M95864</link>
    <description>&lt;P&gt;thanks ... i had trouble with that method but i was able to do it with the following:&amp;nbsp; thanks for the help!&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:50:16 GMT</pubDate>
    <dc:creator>SouthsideFinance</dc:creator>
    <dc:date>2024-02-24T14:50:16Z</dc:date>
    <item>
      <title>Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423143#M95862</link>
      <description>&lt;P&gt;how can I create quarters using a field called Booking Month or Booking Year&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 13:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423143#M95862</guid>
      <dc:creator>SouthsideFinance</dc:creator>
      <dc:date>2024-02-24T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423146#M95863</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;try this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Q' &amp;amp; ceil(month(bookingmonth)/3) as quarter&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;best regards Son&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 14:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423146#M95863</guid>
      <dc:creator>PhanThanhSon</dc:creator>
      <dc:date>2024-02-24T14:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423148#M95864</link>
      <description>&lt;P&gt;thanks ... i had trouble with that method but i was able to do it with the following:&amp;nbsp; thanks for the help!&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:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423148#M95864</guid>
      <dc:creator>SouthsideFinance</dc:creator>
      <dc:date>2024-02-24T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423149#M95865</link>
      <description>&lt;P&gt;Good!&lt;/P&gt;
&lt;P&gt;this maybe Happen because you Month Field isnt cast as date Field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 14:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423149#M95865</guid>
      <dc:creator>PhanThanhSon</dc:creator>
      <dc:date>2024-02-24T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423151#M95866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/172351"&gt;@SouthsideFinance&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem you will have with this approach is that Month is a string, and therefore will not sort correctly.&lt;/P&gt;
&lt;P&gt;If the only date you have in your data is a string based month then you can convert that to a date, and then use that date in a &lt;A href="https://www.quickintelligence.co.uk/preceding-load-qlikview/" target="_self"&gt;preceding load&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MonthQuarter:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;*,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;'Q' &amp;amp; ceil(Month/3) as Quarter,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;ceil(Month/3) as QuarterNo&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;Month as MonthTxt,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;Month(Date#('01 ' &amp;amp; Month &amp;amp; ' 1999', 'DD MMM YYYY')) as Month&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Jan&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Feb&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Mar&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Apr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;May&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Jun&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Jul&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Aug&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sep&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Oct&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Nov&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dec&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;What the code is doing here is building a full date, including the month, and then converting that to a numeric date. Once you have a numeric date you can get the month that this comes from as a dual data type (i.e. Jan=1, Feb=2 etc.). Without doing that the month is just a piece of text and you can't sort or do other functions over it. The code above gives both a&amp;nbsp;&lt;STRONG&gt;Month&lt;/STRONG&gt; and a&amp;nbsp;&lt;STRONG&gt;MonthTxt&lt;/STRONG&gt; field and you will see how they behave here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stevedark_0-1708791037904.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160594iFBAC75AB74C42537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stevedark_0-1708791037904.png" alt="stevedark_0-1708791037904.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense?&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 16:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423151#M95866</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2024-02-24T16:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423211#M95882</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6748"&gt;@stevedark&lt;/a&gt;&amp;nbsp;I don't think you have to do the full fake date any more. You can just do&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Month(Date#(Month&amp;nbsp; 'MMM')) as Month&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 16:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423211#M95882</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-02-26T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dates; changing months into quarters</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423216#M95883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are keeping well!&lt;/P&gt;
&lt;P&gt;I did wonder that, I thought I would go with what I knew would definitely work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having a quick test now, it gives you the first of that month in 1899 - obviously:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stevedark_0-1708877290457.png" style="width: 688px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160608i8AD897D469E7C84F/image-dimensions/688x63?v=v2" width="688" height="63" role="button" title="stevedark_0-1708877290457.png" alt="stevedark_0-1708877290457.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks for pointing this out Rob, every day's a school day!&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 16:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-changing-months-into-quarters/m-p/2423216#M95883</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2024-02-25T16:10:27Z</dc:date>
    </item>
  </channel>
</rss>

