<?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 Descending with empty values on the bottom in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785717#M61258</link>
    <description>&lt;P&gt;Thanks for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is recognized as a date for sure and the steps are exactly the steps that I follow.&amp;nbsp; I believe the reason might be the fact that the ones without a date are not null, they are just empty rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea for this specific case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 10:47:59 GMT</pubDate>
    <dc:creator>ShellyG</dc:creator>
    <dc:date>2021-02-24T10:47:59Z</dc:date>
    <item>
      <title>Sorting Date Descending with empty values on the bottom</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785699#M61253</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to sort the rows in a simple table object by the first column, which is a simple date field in the following format - 'DD-MMM-YYYY'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want them to be sorted descending - the oldest dates to be on top, going down to the newest dates and on the bottom we should see the ones that do not have a date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to sort descending, it puts the ones without a date on top and then it starts from oldest to newest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with an expression which is going to sort from oldest to newest and the ones without a date to be on the bottom of the table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785699#M61253</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2024-11-16T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Date Descending with empty values on the bottom</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785703#M61254</link>
      <description>&lt;P&gt;Sorting by a date field, ascending, should show oldest first, newest last, and null values at the bottom. I've just confirmed this on some test data and it works fine. Make sure you're sorting by numeric value rather than text and that your field is actually recognized as a date in your Qlik app.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 10:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785703#M61254</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-02-24T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Date Descending with empty values on the bottom</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785717#M61258</link>
      <description>&lt;P&gt;Thanks for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is recognized as a date for sure and the steps are exactly the steps that I follow.&amp;nbsp; I believe the reason might be the fact that the ones without a date are not null, they are just empty rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea for this specific case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 10:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785717#M61258</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-02-24T10:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Date Descending with empty values on the bottom</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785766#M61267</link>
      <description>&lt;P&gt;If they're empty as in, a blank text (same as&amp;nbsp; using ''), it'd probably be a good idea to replace this with null in your script - if(len(YourDate)=0,null(),YourDate) for example.&lt;/P&gt;&lt;P&gt;If they're outright missing, for example because they're from a different logical table that doesn't have any rows for a specific key, I think it should still get sorted correctly because that should be treated as a regular null value. However, if it is not, you could try manually setting the sort order, e.g. with a formula such as Alt(YourDate,99999) which translates to "If there's no value in YourDate, fill in a value corresponding to the year 2173". Of course if you are using dates way off in the future you may need to use a bigger number than 99999 to be sure it's last.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785766#M61267</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-02-24T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Date Descending with empty values on the bottom</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785820#M61270</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;This method worked perfectly -&amp;nbsp;&lt;SPAN&gt;Alt(YourDate,99999). Thank you a lot!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 14:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-Date-Descending-with-empty-values-on-the-bottom/m-p/1785820#M61270</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-02-24T14:29:50Z</dc:date>
    </item>
  </channel>
</rss>

