<?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: Month vs. MonthName sorting issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636004#M542352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;month and monthname functions acts different. month returns only the name of the month where as monthname store the complete date and returns month year. thats why sorting worked in 2nd case. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 17:29:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-02T17:29:33Z</dc:date>
    <item>
      <title>Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635997#M542339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be a bug, but I thought I would do a sanity check first.&amp;nbsp; I created a small worksheet that just has data for 13 months, and a value to sum.&amp;nbsp; I created two charts to show the sums.&amp;nbsp; I put a sort value of =[Position Date] in the Expression for both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use MonthName([Position Date]) as an expression for the dimension, it sorts correctly.&amp;nbsp; I use Month([Position Date]), it puts the data for May 2014 first in the chart, followed by the other months in correct order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the application - if anyone can tell me why this is, and how to get the sort to work correctly, I would greatly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635997#M542339</guid>
      <dc:creator />
      <dc:date>2014-06-02T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635998#M542340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you set the sort field to sort the data as numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The month() function will create a dual data value with the text of the month being displayed by default but the numeric value is also there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at dual() for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635998#M542340</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-06-02T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635999#M542342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;uncheck sort by expression and use sort by numeric value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/635999#M542342</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-02T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636000#M542344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried that in the sort tab, as well as a number of other attempts.&amp;nbsp; But I still see the wrong sorting with Month(), but not with MonthName().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636000#M542344</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636001#M542346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Numeric Value gives Jan - Dec, even though the years are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point here is that I get different sorting in two charts that are identical except for the function in the Dimension.&amp;nbsp; The sorting is correct for one, different for the other, even though the sort condition is the same on the same underlying field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636001#M542346</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636002#M542348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a bug. I think it is because of the result of month function. You have&amp;nbsp; 1 value for May in 2013 and 1 value for May in 2014. This appears to be the case only for May and no other months. The month function only returns the name of the month and not the year, so it is consolidating the may 2013 and may 2014 dates. and since 2013 comes before 2014 it is bringing back may first which makes perfect sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636002#M542348</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636003#M542351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorting on the Date field, [Position Date], not on Month([Position Date]).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you open the attached document, you will see that May 2013 is filtered out and does not show in the charts.&amp;nbsp; I put that in to show that it is only considering May 2014.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that in the case of Month(), it is ignoring the sort condition.&amp;nbsp; That is the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636003#M542351</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636004#M542352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;month and monthname functions acts different. month returns only the name of the month where as monthname store the complete date and returns month year. thats why sorting worked in 2nd case. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636004#M542352</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636005#M542354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you have to limit the date in the sort with the same condition used in expression; not sure of that, I have to check &lt;/P&gt;&lt;P&gt;= MonthName(&lt;/P&gt;&lt;P&gt;only({$&amp;lt;[Position Date]={"$(= '&amp;gt;' &amp;amp; AddMonths($(eLastDayOfLastMonth),-12) &amp;amp; '&amp;lt;=' &amp;amp; AddMonths($(eLastDayOfLastMonth),0))"}&amp;gt;} [Position Date])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636005#M542354</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-02T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636006#M542355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose Colin was suggesting to use a dual in&amp;nbsp; dimension as&lt;/P&gt;&lt;P&gt;=dual(Month([Position Date]), MonthName([Position Date]))&lt;/P&gt;&lt;P&gt;and this works if you sort by numeric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636006#M542355</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-02T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636007#M542357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u r ignoring the date but on the set statement which is on the expression level which is not going to affect the group by. Try selecting from June 2013 to May 2014 in your list box, it will do the sorting correctly . this is because u r now filtering it at the dimension level, so it now takes only from June 2013 to May 2014 when building the chart and as a result gives the correct result. If you dont select anything , even if u r ignoring the date in the set statement at the expression level, while building the chart it will be taken into account at the dimension level and henceforth it sorts from may. Another way to test what I said is to remove the date 2013 completely from the load statement and reload it and test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636007#M542357</guid>
      <dc:creator />
      <dc:date>2014-06-02T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636008#M542359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is indeed (sometimes) ignoring the sort condition. &lt;EM&gt;As it should&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Position Date] is not a valid sort expression: The sort expression needs to be an aggregation, and since you don't have one, QlikVIew assumes Only([Position Date]) which returns NULL fairly often. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the fact that one month (Month() or MonthName()) has several [Position Date]s associated - which should be used for sorting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/08/06/it-s-all-aggregations"&gt;It’s all Aggregations&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636008#M542359</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-02T17:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Month vs. MonthName sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636009#M542360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, all.&amp;nbsp; On a deadline so I wasn't thinking clearly.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 18:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-vs-MonthName-sorting-issue/m-p/636009#M542360</guid>
      <dc:creator />
      <dc:date>2014-06-02T18:25:27Z</dc:date>
    </item>
  </channel>
</rss>

