<?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: Need help on sorting Year-Month group. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517862#M1122023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your field a string?&lt;/P&gt;&lt;P&gt;If so use date#(yourfield,'MMM-YYYY') as your sorting expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 15:54:37 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2014-01-15T15:54:37Z</dc:date>
    <item>
      <title>Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517860#M1122021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everyone -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to QlikView. This might be very basic, but here I go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Year-Month group, which, indeed, looks like 'Dec-2006', 'Feb-2008'... 'Nov-2013', etc. I am using it as a dimension in my chart object. Thing is, I want it to be shown ordered ('Jan-2006', 'Feb-2006' ... 'Dec-2013').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all in advance.&lt;/P&gt;&lt;P&gt;Martín.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517860#M1122021</guid>
      <dc:creator />
      <dc:date>2014-01-15T15:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517861#M1122022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Sort tab of your chart check Numeric Value and select Ascending from the dropdown for your Year-Month dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517861#M1122022</guid>
      <dc:creator />
      <dc:date>2014-01-15T15:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517862#M1122023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your field a string?&lt;/P&gt;&lt;P&gt;If so use date#(yourfield,'MMM-YYYY') as your sorting expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517862#M1122023</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-15T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517863#M1122024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, Christian, but I'm afraid I'll have to strike that suggestion. That would work if I had Year, solely, but I have fields like 'Dec-2006', strictly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again : )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517863#M1122024</guid>
      <dc:creator />
      <dc:date>2014-01-15T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517864#M1122025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Anjos. It is the result of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year &amp;amp; '-' &amp;amp; Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Year looks like '2006', '2007'..., and Month looks like 'Jan', 'Feb', 'Mar'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517864#M1122025</guid>
      <dc:creator />
      <dc:date>2014-01-15T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517865#M1122026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, I was assuming that your date field was loaded in with an interpreter function.&amp;nbsp; Just an FYI mine works if the date is interpreted in the load script.&lt;/P&gt;&lt;P&gt;Date:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Dec-2006,&lt;/P&gt;&lt;P&gt;Feb-2008,&lt;/P&gt;&lt;P&gt;Nov-2013&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateFinal:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;date#(Date,'MMM-YYYY')as FinalDate&lt;/P&gt;&lt;P&gt;RESIDENT Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if it is loaded in without being interpreted it may be easier to just sort by expression as Clever Anjos suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517865#M1122026</guid>
      <dc:creator />
      <dc:date>2014-01-15T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517866#M1122027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you say is relly good to know. Thanks for the backup, Christian!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517866#M1122027</guid>
      <dc:creator />
      <dc:date>2014-01-15T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517867#M1122028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, terrific. I tweaked your example just a bit and it worked! : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why, but &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date#('Year' &amp;amp; '-' &amp;amp; 'Month','YYYY-MMM') does not seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined an INLINE table mapping 'Month' ('Jan', 'Feb'...) to ''MonthNumber', and then I sorted as you suggested &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date#('Year' &amp;amp; '-' &amp;amp; 'MonthNumber','YYYY-MM') and it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, Clever Anjos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517867#M1122028</guid>
      <dc:creator />
      <dc:date>2014-01-15T16:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on sorting Year-Month group.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517868#M1122029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do&lt;/P&gt;&lt;P&gt;DATE(date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Year &amp;amp; '-' &amp;amp; Month&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;'MMM-YYYY'&lt;/SPAN&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;'MMM-YYYY'&lt;/SPAN&gt;) at script level, you don´t need to worry about resorting into your graph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-sorting-Year-Month-group/m-p/517868#M1122029</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-15T16:39:01Z</dc:date>
    </item>
  </channel>
</rss>

