<?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: How to order Load statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408192#M612576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA with no error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 18:47:10 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-09-25T18:47:10Z</dc:date>
    <item>
      <title>How to order Load statements</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408189#M612573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to understand the logic of ordering Load-Statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following script doesn't work as intended. I'm trying to make a "Rangesum" with the Peek()-function. It looks good at the first glance, but if I try to make a separate Load-statement to order the Sales, an error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*3.* Finally, I'm trying to safe the table temporarilly and order by &lt;SPAN style="font-size: 13.3333px;"&gt;Customer_Aggr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OrderAttemp:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;Operations &lt;/SPAN&gt;Order By &lt;SPAN style="font-size: 13.3333px;"&gt;Customer_Aggr&lt;/SPAN&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*2.* Than I load the data and make the rangesum-operation with peek()&lt;/P&gt;&lt;P&gt;Operations:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customer_Name,&lt;/P&gt;&lt;P&gt;Customer_Place,&lt;/P&gt;&lt;P&gt;Customer_Sales,&lt;/P&gt;&lt;P&gt;Customer_Sales + Peek(Customer_Sales,-1) AS Customer_Aggr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*1.*&amp;nbsp; Here I'm creating my data &lt;/P&gt;&lt;P&gt;ExampleData:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Customer_ID, Customer_Name, Customer_Place, Customer_Sales&lt;/P&gt;&lt;P&gt;1,Eric,Boston,450&lt;/P&gt;&lt;P&gt;2,John,Kreta,500&lt;/P&gt;&lt;P&gt;3,Rick,Texas,320&lt;/P&gt;&lt;P&gt;4,Martin,Ohio,250&lt;/P&gt;&lt;P&gt;5,Marcus,Kensas,140&lt;/P&gt;&lt;P&gt;6,Lisa,Boston,659&lt;/P&gt;&lt;P&gt;7,Geo,Kreta,370&lt;/P&gt;&lt;P&gt;8,Monti,Kreta,220&lt;/P&gt;&lt;P&gt;9,Daniel,Texas,180&lt;/P&gt;&lt;P&gt;10,Carl,Kensas,220&lt;/P&gt;&lt;P&gt;11,Adi,Kensas,840&lt;/P&gt;&lt;P&gt;12,Begoli,Ohio,1&lt;/P&gt;&lt;P&gt;13,Bruce,Texas,456&lt;/P&gt;&lt;P&gt;14,Hillary,Kreta,6986];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did change the order several times, but didn't help. Could anyone explain me the reason why the script doesn't work and the logic of ordering load statements by the way? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.K &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408189#M612573</guid>
      <dc:creator>spcon2016</dc:creator>
      <dc:date>2017-09-25T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to order Load statements</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408190#M612574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*2.* Than I load the data and make the rangesum-operation with peek()&lt;/P&gt;&lt;P&gt;Operations:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customer_Name,&lt;/P&gt;&lt;P&gt;Customer_Place,&lt;/P&gt;&lt;P&gt;Customer_Sales,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rangesum( Customer_Sales + Peek(Customer_Sales,-1)) AS Customer_Aggr;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*1.*&amp;nbsp; Here I'm creating my data&lt;/P&gt;&lt;P&gt;//ExampleData:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Customer_ID, Customer_Name, Customer_Place, Customer_Sales&lt;/P&gt;&lt;P&gt;1,Eric,Boston,450&lt;/P&gt;&lt;P&gt;2,John,Kreta,500&lt;/P&gt;&lt;P&gt;3,Rick,Texas,320&lt;/P&gt;&lt;P&gt;4,Martin,Ohio,250&lt;/P&gt;&lt;P&gt;5,Marcus,Kensas,140&lt;/P&gt;&lt;P&gt;6,Lisa,Boston,659&lt;/P&gt;&lt;P&gt;7,Geo,Kreta,370&lt;/P&gt;&lt;P&gt;8,Monti,Kreta,220&lt;/P&gt;&lt;P&gt;9,Daniel,Texas,180&lt;/P&gt;&lt;P&gt;10,Carl,Kensas,220&lt;/P&gt;&lt;P&gt;11,Adi,Kensas,840&lt;/P&gt;&lt;P&gt;12,Begoli,Ohio,1&lt;/P&gt;&lt;P&gt;13,Bruce,Texas,456&lt;/P&gt;&lt;P&gt;14,Hillary,Kreta,6986];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////*3.* Finally, I'm trying to safe the table temporarilly and order by Customer_Aggr&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OrderAttemp:&lt;/P&gt;&lt;P&gt;LOAD * Resident Operations Order By Customer_Aggr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Operations;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408190#M612574</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-25T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to order Load statements</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408191#M612575</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;your changes don't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operations:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customer_Name,&lt;/P&gt;&lt;P&gt;Customer_Date,&lt;/P&gt;&lt;P&gt;Customer_Place,&lt;/P&gt;&lt;P&gt;Customer_Sales,&lt;/P&gt;&lt;P&gt;Rangesum( Customer_Sales + Peek(Customer_Sales,-1)) AS Customer_Aggr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExampleData:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Customer_ID, Customer_Name,Customer_Date, Customer_Place, Customer_Sales&lt;/P&gt;&lt;P&gt;1,Eric,15.04.2015,Boston,450&lt;/P&gt;&lt;P&gt;2,John,18.04.2015,Kreta,500&lt;/P&gt;&lt;P&gt;3,Rick,20.04.2015,Texas,320&lt;/P&gt;&lt;P&gt;4,Martin,22.04.2015,Ohio,250&lt;/P&gt;&lt;P&gt;5,Marcus,25.04.2015,Kensas,140&lt;/P&gt;&lt;P&gt;6,Lisa,28.04.2015,Boston,659&lt;/P&gt;&lt;P&gt;7,Geo,30.04.2015,Kreta,370&lt;/P&gt;&lt;P&gt;8,Monti,07.05.2015,Kreta,220&lt;/P&gt;&lt;P&gt;9,Daniel,10.05.2015,Texas,180&lt;/P&gt;&lt;P&gt;10,Carl,15.05.2015,Kensas,220&lt;/P&gt;&lt;P&gt;11,Adi,18.05.2015,Kensas,840&lt;/P&gt;&lt;P&gt;12,Begoli,20.05.2015,Ohio,1&lt;/P&gt;&lt;P&gt;13,Bruce,24.05.2015,Texas,456&lt;/P&gt;&lt;P&gt;14,Hillary,28.05.2015,Kreta,6986];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;OrderAttemp:&lt;/P&gt;&lt;P&gt;LOAD *Resident Operations Order By Customer_Aggr;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DROP Table Operations;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Alert: Can't find Table Operations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408191#M612575</guid>
      <dc:creator>spcon2016</dc:creator>
      <dc:date>2017-09-25T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to order Load statements</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408192#M612576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA with no error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 18:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-order-Load-statements/m-p/1408192#M612576</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-25T18:47:10Z</dc:date>
    </item>
  </channel>
</rss>

