<?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: Sort date in ascending order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386057#M491271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Udaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the Dual function for this type of scenarios&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Dual( 'Quarter' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/3) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.QuarterYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'HalfYear' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/6) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.HalfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'Year' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/12) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Now in sort section Select Numeric value instead of string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 07:47:00 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-09-07T07:47:00Z</dc:date>
    <item>
      <title>Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386056#M491270</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;I am using the below code in the Edit Script to get the quarter, half year and yearly data for the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Quarter' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/3) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.QuarterYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; 'HalfYear' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/6) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.HalfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; 'Year' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/12) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;These date fields are not sorting in order, because of the text Quarter or HalfYear in the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;I have attached the image with this, please check the field that how the field is sorting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;so how can we sort it in ascending order?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;the image shows the sorting as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;HalfYear1(2010), HalfYear1(2008),HalfYear1(2007),...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;But i want the sort order like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;HalfYear1(2006),HalfYear2(2006),HalfYear3(2006),HalfYear4(2006),HalfYear1(2007),......&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 07:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386056#M491270</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-09-07T07:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386057#M491271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Udaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the Dual function for this type of scenarios&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Dual( 'Quarter' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/3) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.QuarterYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'HalfYear' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/6) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.HalfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'Year' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/12) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Now in sort section Select Numeric value instead of string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 07:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386057#M491271</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-07T07:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386058#M491272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;I tried the code which you gave, but it is showing the values multiple times.&lt;/P&gt;&lt;P&gt;I have attached the image. please check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 09:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386058#M491272</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-09-07T09:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386059#M491273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual( 'Quarter' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/3) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')', QuarterName(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.QuarterYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'HalfYear' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/6) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, Year(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.HalfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'Year' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/12) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, MonthEnd(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386059#M491273</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-07T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386060#M491274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the big help,&lt;/P&gt;&lt;P&gt;It worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386060#M491274</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-09-07T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386061#M491275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only for Half Year, it is not working properly.&lt;/P&gt;&lt;P&gt;What is the problem in that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386061#M491275</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-09-07T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386062#M491276</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual(&lt;SPAN style="font-size: 10pt;"&gt; 'HalfYear' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/6) &amp;amp; '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;amp; ')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;, Year(If(Month(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE) &amp;lt;= 6, MakeDate(Year(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE),6,1),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MakeDate(Year(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MONTH_DATE),12,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DATE_DIM.HalfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope this helps you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 12:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386062#M491276</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-07T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386063#M491277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it, but it is giving only one half year per year like HalfYear1(2006),HalfYear2(2007),......&lt;/P&gt;&lt;P&gt;check the attached image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 12:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386063#M491277</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2012-09-07T12:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sort date in ascending order</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386064#M491278</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;Can you attach the sample file with some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps in solving the problem easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 12:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-date-in-ascending-order/m-p/386064#M491278</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-07T12:56:22Z</dc:date>
    </item>
  </channel>
</rss>

