<?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 sort nor working in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125343#M370473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not just the renaming. The load order works at the first encounter of when the field is created. In your example, MONTH was not sorted when it was created, which is why the load order was all messed up. Whereas I renamed it to MONTH1 for time being and then renamed it again to MONTH when we used the SORT to make sure MONTH was created in the sort order we wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this make sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 17:06:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-03T17:06:56Z</dc:date>
    <item>
      <title>Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125337#M370467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks, I'm working in a new dashboard in which I need to calculate 3 month rolling averages in a table, so I'm using aggr, and to make it work, the data should come pre-sorted by date from the script load, so... I'm loading my data into a temp table, then just doing a resident load order by date field. but it is not working, see the attached image, that's the result of sorting by "load order -&amp;gt; original". I've checked and the field is right, date format... Any suggestions? Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126831_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125337#M370467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125338#M370468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has to be sorted the first time it is named this. Can you share your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125338#M370468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125339#M370469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125339#M370469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125340#M370470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP_POI:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(DATE#(DELIV_MONTH &amp;amp; '-' &amp;amp; DELIV_YEAR,'MMMM-YYYY'),'MMM-YY') AS &lt;SPAN style="color: #ff0000;"&gt;MONTH1&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;C&gt;(qvd)&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE upper(CUSTOMER_CHANNEL_GROUP &amp;amp; CUST_RTM_GROUP) &amp;lt;&amp;gt; 'CONSUMERDIRECT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(IF((ISNULL(BILL_DOC_DT) OR BILL_DOC_DT = '') AND SRC_SYS_KY=27,MONTHSTART(SO_CLOSE_DT),MONTHSTART(BILL_DOC_DT)),'MMM-YY') AS &lt;SPAN style="color: #ff0000;"&gt;MONTH1&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE upper(CUSTOMER_CHANNEL_GROUP &amp;amp; CUST_RTM_GROUP) &amp;lt;&amp;gt; 'CONSUMERDIRECT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;POI:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD *, 1 as flag&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;MONTH1 as MONTH&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RESIDENT TEMP_POI&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ORDER BY DATE_SORT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DROP TABLE TEMP_POI;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125340#M370470</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125341#M370471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW I tried sorting by field "MONTH" and "DATE_SORT" with same results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125341#M370471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125342#M370472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; so how come just re-naming the field makes it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125342#M370472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date sort nor working in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125343#M370473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not just the renaming. The load order works at the first encounter of when the field is created. In your example, MONTH was not sorted when it was created, which is why the load order was all messed up. Whereas I renamed it to MONTH1 for time being and then renamed it again to MONTH when we used the SORT to make sure MONTH was created in the sort order we wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this make sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-sort-nor-working-in-script/m-p/1125343#M370473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T17:06:56Z</dc:date>
    </item>
  </channel>
</rss>

