<?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 date in specific order in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762179#M58952</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp; !! That's exactly what I'm looking for !&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 09:43:12 GMT</pubDate>
    <dc:creator>Michaels</dc:creator>
    <dc:date>2020-11-17T09:43:12Z</dc:date>
    <item>
      <title>Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762049#M58928</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a linechart with Dimension = Date (format mm yyyy) and measure = sum(sales)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dates are like this:&lt;/P&gt;&lt;P&gt;Dec 2017&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dec 2018&lt;/P&gt;&lt;P&gt;Nov 2019&lt;/P&gt;&lt;P&gt;Dec 2019&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nov 2020&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For analysis purpose I need to have this order:&lt;/P&gt;&lt;P&gt;Dec 2017&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dec 2018&lt;/P&gt;&lt;P&gt;Dec 2019&lt;/P&gt;&lt;P&gt;Nov 2019&lt;/P&gt;&lt;P&gt;Nov 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI :&lt;/P&gt;&lt;P&gt;Dates are dynamic based on today month. Basically it's&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dec N-3&lt;/P&gt;&lt;P&gt;Dec N-2&lt;/P&gt;&lt;P&gt;Dec N-1&lt;/P&gt;&lt;P&gt;Month N-1&lt;/P&gt;&lt;P&gt;Month N&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762049#M58928</guid>
      <dc:creator>Michaels</dc:creator>
      <dc:date>2024-11-16T01:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762059#M58932</link>
      <description>&lt;P&gt;I would do Year dimension as sorting measure with normal file (MMM-YYYY) format&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 20:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762059#M58932</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-11-16T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762062#M58933</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;but how to sort the months ? I want dec 2019 before nov 2019&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 20:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762062#M58933</guid>
      <dc:creator>Michaels</dc:creator>
      <dc:date>2020-11-16T20:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762065#M58934</link>
      <description>&lt;P&gt;That also can be done using Month and Year format in number then use this field as descending order.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 20:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762065#M58934</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-11-16T20:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762080#M58935</link>
      <description>&lt;P&gt;I tried to sort by date(date#(DATE, 'mm yyyy') decreasing but it give me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nov 2020&lt;/P&gt;&lt;P&gt;Dec 2019&lt;/P&gt;&lt;P&gt;Nov 2019&lt;/P&gt;&lt;P&gt;Dec 2018&lt;/P&gt;&lt;P&gt;Dec 2017&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 21:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762080#M58935</guid>
      <dc:creator>Michaels</dc:creator>
      <dc:date>2020-11-16T21:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762100#M58936</link>
      <description>&lt;P&gt;either create a separate table that has a dual of the month and its order (not a date); or add that field into your calendar:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;load dual(month,RowNo()) as MONTH, month as MONTHTxt inline [&lt;BR /&gt;month&lt;BR /&gt;Jan&lt;BR /&gt;Feb&lt;BR /&gt;Mar&lt;BR /&gt;Apr&lt;BR /&gt;May&lt;BR /&gt;Jun&lt;BR /&gt;Jul&lt;BR /&gt;Aug&lt;BR /&gt;Sep&lt;BR /&gt;Oct&lt;BR /&gt;Nov&lt;BR /&gt;Dec&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;calendar:&lt;BR /&gt;load date(Today()+RowNo()*5) as Date, text(Month(date(Today()+RowNo()*5))) as MONTHTxt, year(date(Today()+RowNo()*5)) as YEAR;&lt;BR /&gt;load 1 as num AutoGenerate (365);&lt;/P&gt;&lt;P&gt;these two tables are linked by the text of the month, sine the MONTH field is a dual you can sort it by month name.&amp;nbsp; just add this field and YEAR as dimensions :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 23:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762100#M58936</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-11-16T23:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762110#M58938</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/100193"&gt;@Michaels&lt;/a&gt;&amp;nbsp;, lot of fun doing this, please try :&lt;/P&gt;&lt;P&gt;//i changed the order of the records to test the functionality&lt;/P&gt;&lt;P&gt;DateX:&lt;BR /&gt;load * inline [&lt;BR /&gt;Date, Sales&lt;BR /&gt;1-11-2020,450&lt;BR /&gt;1-12-2017, 250&lt;BR /&gt;1-12-2018,150&lt;BR /&gt;1-11-2019,300&lt;BR /&gt;1-12-2019,340&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Date:&lt;BR /&gt;Load&lt;BR /&gt;Date,&lt;BR /&gt;monthname(Date) as Period,&lt;BR /&gt;month(Date) as Month,&lt;BR /&gt;Year(Date) as Year,&lt;BR /&gt;Sales&lt;BR /&gt;Resident DateX;&lt;BR /&gt;&lt;BR /&gt;drop table DateX;&lt;/P&gt;&lt;P&gt;DateFinal:&lt;BR /&gt;Load&lt;BR /&gt;recno() as id,&lt;BR /&gt;Date,&lt;BR /&gt;Period,&lt;BR /&gt;Month,&lt;BR /&gt;Year&lt;BR /&gt;Resident Date&lt;BR /&gt;order by&lt;BR /&gt;Month desc , Year asc;&lt;BR /&gt;drop table Date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the chart, just order by 'id':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1605572508511.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44282i82026DEEF6B7D607/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_0-1605572508511.png" alt="QFabian_0-1605572508511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 00:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762110#M58938</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2020-11-17T00:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting date in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762179#M58952</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp; !! That's exactly what I'm looking for !&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-date-in-specific-order/m-p/1762179#M58952</guid>
      <dc:creator>Michaels</dc:creator>
      <dc:date>2020-11-17T09:43:12Z</dc:date>
    </item>
  </channel>
</rss>

