<?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: Can't Sort, Order By not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670741#M542644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked! Thanks a lot Michael!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 19:00:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-12T19:00:26Z</dc:date>
    <item>
      <title>Can't Sort, Order By not working</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670737#M542640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with sorting in the script. I need my data to be sorted by POST_DATE and then EMPLOYEE_NUMBER but for whatever reason, the script seems to be ignoring that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the date formatted as numbers, and just the numeric portion of the Employee Number but nothing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I'm just overlooking something but I have no idea what it is. It's driving me crazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670737#M542640</guid>
      <dc:creator />
      <dc:date>2014-06-12T18:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sort, Order By not working</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670738#M542641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically you sort data on the front end objects.&amp;nbsp; What is the purpose of sorting in the script in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670738#M542641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sort, Order By not working</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670739#M542642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to be adding in expressions to create fields that use the Peek function but the data must be sorted in a certain way for it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670739#M542642</guid>
      <dc:creator />
      <dc:date>2014-06-12T18:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sort, Order By not working</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670740#M542643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, in this case you need script level sort.&amp;nbsp; To make it reliable, sort by a &lt;STRONG&gt;numeric&lt;/STRONG&gt; value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Data2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD PAY_WK_ENDING, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POST_DATE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POST_MONTH, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(ACTUAL_HOURS_WORKED) as ACTUAL_HOURS_WORKED, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMPLOYEE_NUMBER, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; mid(EMPLOYEE_NUMBER,4) as Sort2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this is a number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EVENT&lt;/P&gt;&lt;P&gt;Resident Temp_Data1&lt;/P&gt;&lt;P&gt;group by POST_DATE,PAY_WK_ENDING, POST_MONTH, EMPLOYEE_NUMBER, EVENT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp_Data1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Data3:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Temp_Data2&lt;/P&gt;&lt;P&gt;order by POST_DATE, &lt;STRONG&gt;Sort2&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670740#M542643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T18:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Sort, Order By not working</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670741#M542644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked! Thanks a lot Michael!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-Sort-Order-By-not-working/m-p/670741#M542644</guid>
      <dc:creator />
      <dc:date>2014-06-12T19:00:26Z</dc:date>
    </item>
  </channel>
</rss>

