<?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 Expression to Sort Dates - blanks at top in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235819#M504303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrong post. Error in browser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2009 16:55:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-11T16:55:28Z</dc:date>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235811#M504295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date field in a table. The requirement is for the records that have no dates to appear at the top of the list. Sorting by Ascending or Descending leaves the blank dates at the bottom. Is there a Sort expression I can use? I can think of other work arounds but a sort expression would be a neater solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 05:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235811#M504295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-09T05:05:40Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235812#M504296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Orderby, on the date field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235812#M504296</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2009-11-09T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235813#M504297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but Interbase only alows Asc &amp;amp; Desc in SQL which I can already do within the QV 'Sort by' expression combo box. I think MySQL may allow it. Ideally I would like an expression that will place Null values at the top of a list of dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 16:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235813#M504297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-09T16:14:40Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235814#M504298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When retrieving from ODBC-source or a .txt-file would suggest to use the NullDisplay-functionality&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&amp;lt;h4&amp;gt;SET NULLDISPLAY=&amp;lt;sym&amp;gt;;&amp;lt;/h4&amp;gt;&lt;BR /&gt;The symbol &amp;lt;sym&amp;gt; will substitute all NULL values from the ODBC data source on the lowest level of data input. &amp;lt;sym&amp;gt; may be any string.&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Use #N/A as symbol and it will be sorted as first/last and can be selected&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 20:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235814#M504298</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-09T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235815#M504299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interbase doesn't have NULLDISPLAY in it's SQL language.&lt;/P&gt;&lt;P&gt;Had to resort to using an If statement on a pre load and sorting by Numeric Value. Would have thought there would be a solution by using the 'Sort by' expression in the table properties but no one has come forward.&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(IsNull(DUE_DATE), 'Nil',date(DUE_DATE,'DD/MM/YY')) &lt;B&gt;as&lt;/B&gt; DueDate,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 00:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235815#M504299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T00:03:53Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235816#M504300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you intend to use the script on 64-bit-server, you should test the expression not with IsNull, but check on the length of the string:&lt;/P&gt;&lt;P&gt;LEN(Mydate) = 0 ....&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 04:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235816#M504300</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-11T04:05:52Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235817#M504301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter&lt;/P&gt;&lt;P&gt;We're not on 64 bit servers yet but useful to know.&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 15:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235817#M504301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235818#M504302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrong post. Error in browser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 16:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235818#M504302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235819#M504303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrong post. Error in browser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 16:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235819#M504303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235820#M504304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried an Expression in sorting?&lt;/P&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;Normal 0 false false false LV X-NONE X-NONE MicrosoftInternetExplorer4 =If(Len(Trim(&lt;B&gt;DUE_DATE&lt;/B&gt;))=0,1)&lt;/P&gt;&lt;P&gt;It helds empty values in DUE_DATE field as 1.&lt;BR /&gt;Usin Ascending sort empty dates will be on top&lt;/P&gt;&lt;P&gt;If you want to use Descending sort, then change 1 to 99999999, then empty values also will be on top&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0876.Sort_5F00_Expression.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0876.Sort_5F00_Expression.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 17:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235820#M504304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T17:04:05Z</dc:date>
    </item>
    <item>
      <title>Expression to Sort Dates - blanks at top</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235821#M504305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;uups, I had an error in browser, and now there are 3 posts of mine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 17:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Sort-Dates-blanks-at-top/m-p/235821#M504305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T17:07:42Z</dc:date>
    </item>
  </channel>
</rss>

