<?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 order with year-month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551377#M554321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try loading like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13778535974339969" jivemacro_uid="_13778535974339969"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Year(MyDate) As MyYear,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Week(MyDate) As MyWeek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Dual(&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Year(MyDate) &amp;amp; '-' &amp;amp; Week(MyDate)&lt;/SPAN&gt;, Num(Mydate)) As MyYearWeek&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;This way you tell Qlikview that MyYearWeek is a date, but the text formatting is YYYY-WW. Sorting will be based on the underlying numeric value&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 09:06:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-30T09:06:44Z</dc:date>
    <item>
      <title>Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551368#M554312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the sort order in a bar chart. On the x-axis I have a field, let's call it &lt;EM&gt;MyYearWeek&lt;/EM&gt;, which contains the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2013-51&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2014-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2014-12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2014-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I don't know how to sort it correctly, right now with my A-&amp;gt;Z sorting the values presents as 2013-51, 2014-1, 2014-12, 2014-2 of course... I really do want to keep the 'YYYY-WW' formatting for my field values. How to sort it within the chart object sort tab, without changing my script below... Perhaps I could use the Year field and Week field seperately for sorting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Year(MyDate) As MyYear,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Week(MyDate) As MyWeek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Year(MyDate) &amp;amp; '-' &amp;amp; Week(MyDate) As MyYearWeek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551368#M554312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T08:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551369#M554313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try expression sort :&lt;/P&gt;&lt;P&gt;Expression: MyYear+MyWeek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551369#M554313</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-30T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551370#M554314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chart Properties -&amp;gt; Sort&lt;/P&gt;&lt;P&gt;remove all the sorting and then the date field select Number Ascending / Descending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tht will solve ur problm..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551370#M554314</guid>
      <dc:creator />
      <dc:date>2013-08-30T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551371#M554315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your suggestion only sorts weeks, heres the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2014-1&lt;BR /&gt;2014-2&lt;BR /&gt;2014-12&lt;BR /&gt;2013-51&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551371#M554315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551372#M554316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean sort by 'Numeric Value' Ascending.... then it doesn't work at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I only have one dimension and using QV 11 if it helps in any way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551372#M554316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551373#M554317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, my mistake.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;try:&lt;/P&gt;&lt;P&gt;Expression: MyYear*100+MyWeek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551373#M554317</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-30T08:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551374#M554318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="qv.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/46043_qv.JPG.jpg" style="width: 620px; height: 363px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551374#M554318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T08:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551375#M554319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this in your chat sort expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num#(SubField(&lt;SPAN style="font-family: courier new,courier;"&gt;MyYearWeek&lt;/SPAN&gt;,'-',1)&amp;amp;num(SubField(&lt;SPAN style="font-family: courier new,courier;"&gt;MyYearWeek&lt;/SPAN&gt;,'-',2),'00'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then sort ascending or descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551375#M554319</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-08-30T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551376#M554320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a field year(mydate) and week(mydate) as xxx and sort by this field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551376#M554320</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-08-30T08:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551377#M554321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try loading like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13778535974339969" jivemacro_uid="_13778535974339969"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Year(MyDate) As MyYear,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Week(MyDate) As MyWeek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Dual(&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Year(MyDate) &amp;amp; '-' &amp;amp; Week(MyDate)&lt;/SPAN&gt;, Num(Mydate)) As MyYearWeek&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;This way you tell Qlikview that MyYearWeek is a date, but the text formatting is YYYY-WW. Sorting will be based on the underlying numeric value&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551377#M554321</guid>
      <dc:creator />
      <dc:date>2013-08-30T09:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551378#M554322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have to keep the format as YYYY-WW or can it be changed to YYYYWW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it can be changed, just use &lt;/P&gt;&lt;P&gt;Year(MyDate)*100+Week(MyDate) as MyYearWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of your original expression and then use numeric sort on the chart. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and BR.&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551378#M554322</guid>
      <dc:creator />
      <dc:date>2013-08-30T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551379#M554323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, works great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551379#M554323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551380#M554326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551380#M554326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-30T09:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551381#M554328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Useful discussion. bookmarked it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/551381#M554328</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2013-08-30T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order with year-month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/1992053#M1221280</link>
      <description>&lt;P&gt;It solved my problem of sorting my X-Axis which is like MonthName-Year. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 06:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-order-with-year-month/m-p/1992053#M1221280</guid>
      <dc:creator>vivek_batra</dc:creator>
      <dc:date>2022-10-13T06:18:22Z</dc:date>
    </item>
  </channel>
</rss>

