<?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: sort in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422318#M157356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this table ConsData with data loaded already:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ConsData:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adult Impacts],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So below that I need to type your code?&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;NoConcatenate LOAD Date, [Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;,RangeSum([Adult Impacts],Peek([Cumulative Adult Impacts])) as [Cumulative Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Resident Data Order By Date;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I am quiet new to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Feb 2013 17:00:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-10T17:00:22Z</dc:date>
    <item>
      <title>sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422314#M157352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a cumulative values of [Adunt Impacts] using the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum([Adult Impacts],Peek('Cumulative_AdsImpact')) as Cumulative_AdsImpact&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However to make sense of it my date need to be sorted by DateTime field before cumulation.&lt;/P&gt;&lt;P&gt;How can I sort my data in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas pleae?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 16:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422314#M157352</guid>
      <dc:creator />
      <dc:date>2013-02-10T16:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422315#M157353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following example script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Date, Adult Impacts&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1/2/2013,10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1/4/2013,20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1/3/2013,25&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;1/1/2013,5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;NoConcatenate LOAD Date, [Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;,RangeSum([Adult Impacts],Peek([Cumulative Adult Impacts])) as [Cumulative Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Resident Data Order By Date;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample application is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 16:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422315#M157353</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2013-02-10T16:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422316#M157354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it mean I have to manually write all Dates and Impacts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 16:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422316#M157354</guid>
      <dc:creator />
      <dc:date>2013-02-10T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422317#M157355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. If you have your data in a table named 'Data', you may use it in the second load.&lt;/P&gt;&lt;P&gt;For the sample application to illustrate the script, I loaded data as Inline load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 16:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422317#M157355</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2013-02-10T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422318#M157356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this table ConsData with data loaded already:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ConsData:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adult Impacts],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So below that I need to type your code?&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;NoConcatenate LOAD Date, [Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;,RangeSum([Adult Impacts],Peek([Cumulative Adult Impacts])) as [Cumulative Adult Impacts]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Resident Data Order By Date;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I am quiet new to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 17:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422318#M157356</guid>
      <dc:creator />
      <dc:date>2013-02-10T17:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422319#M157357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ConsData&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adult Impacts],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultData: &lt;/P&gt;&lt;P&gt;NoConcatenate LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Adult Impacts],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum([Adult Impacts],Peek([Cumulative Adult Impacts])) as [Cumulative Adult Impacts],&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Resident &lt;STRONG&gt;ConsData &lt;/STRONG&gt;Order By Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table &lt;STRONG&gt;ConsData; &lt;/STRONG&gt;// ConsData is no longer needed, all the data is now in table ResultData&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 17:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422319#M157357</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-10T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: sort in script</title>
      <link>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422320#M157358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert for detailed explenation. It was really helpful to get the idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2013 18:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort-in-script/m-p/422320#M157358</guid>
      <dc:creator />
      <dc:date>2013-02-10T18:17:52Z</dc:date>
    </item>
  </channel>
</rss>

