<?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: Sorting Dates in Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924025#M319870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try =max({$&amp;lt;month_year_text=,%month_id ={"&amp;gt;$(=$(vFrom))&amp;lt;=$(=$(vTo))"}&amp;gt;}month_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 12:23:09 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-08-14T12:23:09Z</dc:date>
    <item>
      <title>Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924019#M319864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i want to sort the months (without year specification) in the order of the month_id (which refers to a corresponding "month_year" field)&lt;/P&gt;&lt;P&gt;i have attached the test app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Chart 1 and Chart 2. Chart 1 is sorted according to %month_id. I want as final result the Chart 2, which is a difference of values of current month minus a previous set of months. &lt;STRONG&gt;I want the value difference expressed as a month without specifying the year, but this shall be sorted&lt;/STRONG&gt; (as showed in Chart 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In&lt;STRONG&gt; Chart 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;,&lt;/STRONG&gt; instead of displaying Sep.2014, it shall be displayed only " Sep ".&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Calculation:&lt;/SPAN&gt; "Value of Sep.2014 (84) -&amp;nbsp; Value of Sep.2013 (83) " is showed as the "difference" which shall be displayed in Chart 2, but sorted as Sep.2014. The final value is " -1 ". The next value is the difference between Aug.2014 and Aug.2013 displayed as "Aug" and so on.&lt;/P&gt;&lt;P&gt;Thanks for any help on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the test Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;table_tmp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;[&lt;BR /&gt; month_id,%month_id,month_year_text,month_text,TY,LY,Diff&lt;BR /&gt; 41883,81,Sep.2014,Sep,84,0,84&lt;BR /&gt; 41852,80,Aug.2014,Aug,112,0,112&lt;BR /&gt; 41821,79,Jul.2014,Jul,148,0,148&lt;BR /&gt; 41791,78,Jun.2014,Jun,115,0,115&lt;BR /&gt; 41760,77,May.2014,Mai,89,0,89&lt;BR /&gt; 41730,76,Apr.2014,Apr,101,0,101&lt;BR /&gt; 41699,75,Mar.2014,Mrz,110,0,110&lt;BR /&gt; 41671,74,Feb.2014,Feb,107,0,107&lt;BR /&gt; 41640,73,Jan.2014,Jan,140,0,140&lt;BR /&gt; 41609,72,Dec.2013,Dez,100,0,100&lt;BR /&gt; 41579,71,Nov.2013,Nov,89,0,89 &lt;BR /&gt; 41548,70,Oct.2013,Okt,90,0,90 &lt;BR /&gt; 41518,69,Sep.2013,Sep,0,83,-83 &lt;BR /&gt; 41487,68,Aug.2013,Aug,0,92,-92 &lt;BR /&gt; 41456,67,Jul.2013,Jul,0,98,-98 &lt;BR /&gt; 41426,66,Jun.2013,Jun,0,72,-72 &lt;BR /&gt; 41395,65,May.2013,Mai,0,76,-76 &lt;BR /&gt; 41365,64,Apr.2013,Apr,0,80,-80 &lt;BR /&gt; 41334,63,Mar.2013,Mrz,0,72,-72 &lt;BR /&gt; 41306,62,Feb.2013,Feb,0,81,-81 &lt;BR /&gt; 41275,61,Jan.2013,Jan,0,103,-103&lt;BR /&gt; 41244,60,Dec.2012,Dez,0,76,-76 &lt;BR /&gt; 41214,59,Nov.2012,Nov,0,84,-84 &lt;BR /&gt; 41183,58,Oct.2012,Okt,0,90,-90 &lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 09:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924019#M319864</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924020#M319865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe, you can sort using this expression:&lt;/P&gt;&lt;P&gt;If(Month(Min(month_year_date))&amp;gt;=10, Month(Min(month_year_date))-12, Month(Min(month_year_date)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924020#M319865</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-08-14T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924021#M319866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting by Load Order Reversed or by expression =max({1}%month_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 09:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924021#M319866</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-14T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924022#M319867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, no, it did not work&lt;/P&gt;&lt;P&gt;i adjusted the test application, to reflect better the real app&lt;/P&gt;&lt;P&gt;Chart 2, under the given conditions, cannot be sorted with expressions or load order&lt;/P&gt;&lt;P&gt;see the attached app !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924022#M319867</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924023#M319868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;it did not work, i posted an adapted application&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924023#M319868</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924024#M319869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe, I don't understand what isn't working, I tested both options proposed by gysbert and mine.&lt;/P&gt;&lt;P&gt;If I select May.14 with the three options it shows months from Dez to Mai. Wich result you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924024#M319869</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-08-14T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924025#M319870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try =max({$&amp;lt;month_year_text=,%month_id ={"&amp;gt;$(=$(vFrom))&amp;lt;=$(=$(vTo))"}&amp;gt;}month_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924025#M319870</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-14T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924026#M319871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i expect the Dimension "month" sorted from, say apr,march,feb,jan,dec,nov,oct,,etc. in that sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. if i select in the app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prev_month = 6&lt;/P&gt;&lt;P&gt;month_year_text = Mar.2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get this, when i have to get Mrz,Feb,Jan,Dez,etc.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96079_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924026#M319871</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T12:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924027#M319872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perfect! thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924027#M319872</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924028#M319873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you load the data a little differently, this becomes quite simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_tmp:&lt;/P&gt;&lt;P&gt;LOAD Date(month_id, 'MMM.YYYY') As DateMY,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Month(month_id) As Month,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; %month_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; TY,&lt;/P&gt;&lt;P&gt;&amp;nbsp; LY,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Diff&lt;/P&gt;&lt;P&gt;inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;month_id,%month_id,month_year_text,month_text,TY,LY,Diff&lt;/P&gt;&lt;P&gt;41883,81,Sep.2014,Sep,84,0,84&lt;/P&gt;&lt;P&gt;41852,80,Aug.2014,Aug,112,0,112&lt;/P&gt;&lt;P&gt;41821,79,Jul.2014,Jul,148,0,148&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now DateMY is a dual field which you can sort numerically. The other two date fields are redundant as all the information is in DateMY and %month_id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924028#M319873</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-14T12:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Dates in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924029#M319874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, i will try this in the real app, since i have there 700 m. rows, however the max solution actually works fast&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Dates-in-Chart/m-p/924029#M319874</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-08-14T12:42:12Z</dc:date>
    </item>
  </channel>
</rss>

