<?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: Date not sorted correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423836#M798171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Though the dates are sorted correctly now using &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Floor(Date#(AsOf, 'DD-MMM-YYYY')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but they come out as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;11/22/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/01/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/15/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How do I format it so they will come out as?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;22-NOV-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;01-DEC-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;15-DEC-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2017 20:17:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-18T20:17:21Z</dc:date>
    <item>
      <title>Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423829#M798164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this question has been asked before but I can't seem to find the answer.&amp;nbsp; I have&lt;/P&gt;&lt;P&gt;a selection box which contains dates in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01-DEC-2017&lt;/P&gt;&lt;P&gt;15-DEC-2017&lt;/P&gt;&lt;P&gt;22-NOV-2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get these values to be sorted in time chronological order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423829#M798164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423830#M798165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default qlikview sort by auto ascending order. try to uncheck the load order in sort tab&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187416_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 19:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423830#M798165</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-18T19:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423831#M798166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is that you are expecting to see and where you want to see this order? Is this your right date format? &lt;/P&gt;&lt;P&gt;May be you can try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, Num(Floor(Date#(DateField, 'DD-MMM-YYYY'))) AS NewDateField INLINE [&lt;/P&gt;&lt;P&gt;DateField&lt;/P&gt;&lt;P&gt;01-DEC-2017&lt;/P&gt;&lt;P&gt;15-DEC-2017&lt;/P&gt;&lt;P&gt;22-NOV-2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use this NewDateField in sorting expression ASC or DESC. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 19:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423831#M798166</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-18T19:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423832#M798167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My "Load Order" is not checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want these values to be populated in time order.&amp;nbsp; With the above samples, I want the list to&lt;/P&gt;&lt;P&gt;look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;22-NOV-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;01-DEC-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;15-DEC-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is this even possible?&amp;nbsp;&amp;nbsp; I was reading on the DUAL() function.&amp;nbsp; It seems to work well if you have pure&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;text that you want to sort.&amp;nbsp; Since my values contain integers and texts, not sure if this doable?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423832#M798167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423833#M798168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to order on numeric value check this.&lt;/P&gt;&lt;P&gt;a date field is always a dual field (DD.MMM.YYYY and numeric value) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423833#M798168</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2017-12-18T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423834#M798169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sydney, you can try adding the field to a simple listbox, if it's left-aligned it means that is a string, and dates should be numbers (right aligned by default), in this case you can use Vishwarath solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use Date() instead of Num() if you want to load this field in a user-friendly format and as a number, so kind of auto-sortable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423834#M798169</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-18T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423835#M798170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwarath &amp;amp; Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the sort I want using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(Date#(AsOf, 'DD-MMM-YYYY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let me populate with more dates from the db and see if they all come out correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423835#M798170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423836#M798171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Though the dates are sorted correctly now using &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Floor(Date#(AsOf, 'DD-MMM-YYYY')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but they come out as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;11/22/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/01/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12/15/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How do I format it so they will come out as?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;22-NOV-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;01-DEC-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;15-DEC-2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423836#M798171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423837#M798172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have do this for that. That is what i mentioned in my earlier script to create a newdatefield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Floor(Date#(AsOf, 'DD-MMM-YYYY')), 'DD-MMM-YYYY') AS youroriginalField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Num(Floor(Date#(AsOf, 'DD-MMM-YYYY')))&amp;nbsp;&amp;nbsp; AS yourSortDateField. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So when you use your listbox go to sort tab then in the expression add this &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NewSortDateField as ASC. Like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187418_Capture.PNG" style="height: 260px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423837#M798172</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-18T20:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423838#M798173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;If you want to keep the format you have dated, you must specify in the variable of short date in this way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="en"&gt;SET DateFormat='DD/MMM/YYYY';&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Next up, cast your date format with this way: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="en"&gt;Date#(DateField) as NewDateField,&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;With it you have all ready to load the date as you need, verifiy with the date be a dual value, how do it, it will be alling to the rigth.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Miguel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423838#M798173</guid>
      <dc:creator>uroboros</dc:creator>
      <dc:date>2017-12-18T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423839#M798174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwarath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK.&amp;nbsp; I followed your steps.&amp;nbsp; Everything looks correct when the screen is first loaded.&amp;nbsp; However after I select "01-NOV-2017", this values goes to the bottom of the list.&amp;nbsp; Is this expected?&amp;nbsp; I don't want to the values to shift.&amp;nbsp; See my screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_sort.jpg" class="jive-image image-1" height="298" src="https://community.qlik.com/legacyfs/online/187421_date_sort.jpg" style="height: 297.789px; width: 147px;" width="147" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423839#M798174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423840#M798175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I configured the sort.&amp;nbsp; Did I miss anything?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_sort_2.jpg" class="jive-image image-1" height="402" src="https://community.qlik.com/legacyfs/online/187423_date_sort_2.jpg" style="height: 401.5px; width: 264px;" width="264" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423840#M798175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423841#M798176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you uncheck auto ascending in the sort tab of your listbox prpoerties.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423841#M798176</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-18T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423842#M798177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you don't mind.&amp;nbsp; Would you put together a snippet using the values I gave in a qvw file?&amp;nbsp;&amp;nbsp; I will take a look at&lt;/P&gt;&lt;P&gt;your qvw file to see how you did it.&amp;nbsp;&amp;nbsp; Thanks so much for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423842#M798177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-18T20:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423843#M798178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry you mean My QVW file right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 21:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423843#M798178</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-18T21:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423844#M798179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for putting together the qvw file.&amp;nbsp; However it doesn't work the way I described it.&amp;nbsp; The&lt;/P&gt;&lt;P&gt;November date is at the bottom of the list when I open the document.&amp;nbsp; It should be at&lt;/P&gt;&lt;P&gt;the top (first one).&amp;nbsp;&amp;nbsp; Also I don't see the sort expression you explained to me in your sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423844#M798179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423845#M798180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sydney, if dates are real dates (they are right-aligned) you can disable sorting by expression and check only the numeric sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or set your sorting expression to:&lt;/P&gt;&lt;P&gt;Min({1} yourSortDateField) // Selections won't affect sorting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 14:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423845#M798180</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-19T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423846#M798181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't forget about this check box&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187560_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 14:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423846#M798181</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2017-12-19T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423847#M798182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben,&lt;/P&gt;&lt;P&gt;I unchecked "sort by expression" and use "sort by numeric" as you suggested.&amp;nbsp; This seems to have fixed&lt;/P&gt;&lt;P&gt;my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you everyone who have contributed to this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 14:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423847#M798182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date not sorted correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423848#M798183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&amp;nbsp; One more issue related to this.&amp;nbsp; Now that the selection box is sorted properly.&amp;nbsp; However my&lt;/P&gt;&lt;P&gt;chart isn't being rendered in the correct time order.&amp;nbsp; See attached.&amp;nbsp; How do I make so that "21-Nov-2017" comes&lt;/P&gt;&lt;P&gt;first to the left and "19-Dec-2017" being last on the right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_sort_3.jpg" class="jive-image image-1" height="242" src="https://community.qlik.com/legacyfs/online/187577_date_sort_3.jpg" style="height: 241.961px; width: 512px;" width="512" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 15:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-sorted-correctly/m-p/1423848#M798183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T15:38:34Z</dc:date>
    </item>
  </channel>
</rss>

