<?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: Re: ORDER BY in resident load not ordering fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478982#M690604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Per Henric's post that you reference, I think I've only attained NERD status --- need to keep working towards the GEEK status so I can fix these things! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 14:46:14 GMT</pubDate>
    <dc:creator>Tyler_Waterfall</dc:creator>
    <dc:date>2013-10-16T14:46:14Z</dc:date>
    <item>
      <title>ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478975#M690597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any recommendations on either how to get the ORDER BY load statement for a RESIDENT load to work &lt;EM&gt;or &lt;/EM&gt;a suitable workaround if this just doesn’t work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Situation: Concatenating several tables with identical column names but with varying date fields (&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;[TimeStamp]&lt;/SPAN&gt;) which I am trying to display in order in a straight table by a field (&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;[SessionHeatmapDay]&lt;/SPAN&gt;) which is &lt;EM&gt;MMM-DD&lt;/EM&gt;.&amp;nbsp; I cannot get either the ORDER BY in the load statement or the sort by (in the straight table) to work on either field. I am even trying to create a numeric field &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;TimeStamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;timestampSORT &lt;/SPAN&gt;to ORDER BY, but that fails too. It seems to maintain the original load order of the concatenated tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example w/ source QVDs.&lt;/P&gt;&lt;P&gt;Using 11.20 desktop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be helpful.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478975#M690597</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-10-16T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478976#M690598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you have Created the Field &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;[SessionHeatmapDay] using Month(FieldName)&amp;amp; '-' &amp;amp; Day(FieldName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Also add dual function to it like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Dual(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Month(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;DateFieldName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;)&amp;amp; '-' &amp;amp; Day(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;DateFieldName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;), Floor(DateFieldName)) AS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;SessionHeatmapDay&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Then Sort by(Numeric) works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Load Order cannot be used in your case. It is concatenated from 2 tables, which is loaded already.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;Since it is loaded, sorting with load order is based on the first load not based on the order by.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478976#M690598</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-10-16T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478977#M690599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is helpful. The SessionHeatmapDay is generated in QlikView Expressor, but in typical fashion must be getting read into QV script as a string which it cannot sort.&lt;/P&gt;&lt;P&gt;I'll look into using DUAL() for the sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Celambarasan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478977#M690599</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-10-16T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478978#M690600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I’m going with the following instead which appears to work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;- removed the ORDER BY clause&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;- added field num(TimeStamp) as sessionHeatmapDaySort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;- use this new field to sort within the chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;In other words, I abandoned the ORDER BY clause altogether.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478978#M690600</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-10-16T13:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478979#M690601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just had a look at your sample qvw file. Just out of curiosity (since it seems to be resolved for you), why do you think your table is &lt;EM&gt;not&lt;/EM&gt; sorted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just open the file, open the table viewer and look at the data, it seems to sorted ok (by timestamp desc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be helpful if you add a field with rowno() or recno() to have information about your table order available in the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478979#M690601</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-16T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478980#M690602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look at the data via a table or listbox. The SessionHetamapDay is not sorted properly (when you look at it by Sort by Load Order.)&lt;/P&gt;&lt;P&gt;So, maybe the issue here is that sort by Load Order does not work in connection with an ORDER BY in the load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478980#M690602</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-10-16T14:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478981#M690603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ORDER BY clause is sorting the input table in your data table load only, it is not resorting the symbol tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an explanation of the difference between the two:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/20/symbol-tables-and-bit-stuffed-pointers" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/20/symbol-tables-and-bit-stuffed-pointers"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/20/symbol-tables-and-bit-stuffed-pointers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need the symbol tables ordered, too (in most cases you don't need to, especially when you can just sort by numeric value), you can do it like attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478981#M690603</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-16T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: ORDER BY in resident load not ordering fields</title>
      <link>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478982#M690604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Per Henric's post that you reference, I think I've only attained NERD status --- need to keep working towards the GEEK status so I can fix these things! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ORDER-BY-in-resident-load-not-ordering-fields/m-p/478982#M690604</guid>
      <dc:creator>Tyler_Waterfall</dc:creator>
      <dc:date>2013-10-16T14:46:14Z</dc:date>
    </item>
  </channel>
</rss>

