<?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 Sort by Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287864#M107097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you both.&amp;nbsp; That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 18:15:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-19T18:15:33Z</dc:date>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287859#M107092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my load script, I create a YearMonth field as follows: date(feeddate,'YYYYMM') as YearMonth.&amp;nbsp; I have another field, AsOfYearMonth, that is equal to YearMonth.&amp;nbsp; In my report, I have this calculated dimension - =date(AsOfYearMonth,'MMM').&amp;nbsp; The report output so far looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;COLGROUP span="1"&gt;&lt;COL span="1" width="98" /&gt;&lt;COL span="1" width="98" /&gt;&lt;COL span="1" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;=date(AsOfYearMonth,'MMM')&lt;BR /&gt;//=dual(text(date(AsOfYearMonth,'MMM')),&lt;BR /&gt;//num(month(AsOfYearMonth)))&lt;BR /&gt;//=Month(AsOfYearMonth)&lt;/TD&gt;&lt;TD class="xl66" width="98"&gt;2011 Total Voluntary&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="98"&gt;dual(text(date(AsOfYearMonth,'MMM')),&lt;BR /&gt;num(month(AsOfYearMonth)))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Feb&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;7.4%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Mar&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;15.4%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;May&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;11.6%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Sep&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Apr&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Oct&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;May&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Jan&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;14.3%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Dec&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Apr&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;14.1%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Jun&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Jul&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Jun&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;11.1%&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Nov&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Aug&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;BR /&gt;My problem is that some months (Jan, Feb, Mar, Apr, May, Jun) are repeating, instead of consolidating onto one line. I suspect that this is due to the actual value behind each month.&amp;nbsp; How can I force these repeating months onto the same line?&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287859#M107092</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287860#M107093</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 to create a field in the script with the syntax: &lt;/P&gt;&lt;P&gt; month(feeddate) as Month,&lt;/P&gt;&lt;P&gt;or date(month(feeddate),'MMM') as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I'd say your are right, you have a value with month and year behind the dimension, even if you format it in a different way.&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;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287860#M107093</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-07-18T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287861#M107094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Field Month(Date) as MonthName in your Date Dimension and use that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287861#M107094</guid>
      <dc:creator />
      <dc:date>2011-07-18T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287862#M107095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you.&amp;nbsp; In both cases, this should be done in the load script, not in the report itself, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287862#M107095</guid>
      <dc:creator />
      <dc:date>2011-07-18T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287863#M107096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that you go in the script. &lt;/P&gt;&lt;P&gt;You can also include the month as an integer if you still have problems to sort it&lt;/P&gt;&lt;P&gt;num(month(date)) as nMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287863#M107096</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-07-18T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Sort by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287864#M107097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you both.&amp;nbsp; That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Month/m-p/287864#M107097</guid>
      <dc:creator />
      <dc:date>2011-07-19T18:15:33Z</dc:date>
    </item>
  </channel>
</rss>

