<?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: Order By within Preceding Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288674#M710032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm thinking it's not possible either. I ended up creating a new table to deal with this. I was afraid that it would add load time or memory usage, but it doesn't seem to be the case even working with several million records. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 17:07:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-19T17:07:23Z</dc:date>
    <item>
      <title>Order By within Preceding Load</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288671#M710029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a flag with a script that will compare the previous record to the current and flag differences. My current script is in the form of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, If(Previous(B) = B, 0, 1) as flag;&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;Order By C;&lt;/P&gt;&lt;P&gt;LOAD A, B, {expression} as C&lt;/P&gt;&lt;P&gt;RESIDENT Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll likely suggest I put the Order By within the bottom LOAD, but the multiple preceding LOADs are actually more complicated than what's represented here. For this discussion, I'd like to know if I can get the above to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error states I'm missing a "FROM" syntax, suggesting you need a FROM for the Order By to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 20:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288671#M710029</guid>
      <dc:creator />
      <dc:date>2011-07-18T20:44:11Z</dc:date>
    </item>
    <item>
      <title>Order By within Preceding Load</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288672#M710030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you cannot use an order by in a preceding load.&amp;nbsp; I believe you will need to handle it with a second load, either creating a new table or doing a left join on the key.&amp;nbsp; So first create field C, then do another load resident.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 20:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288672#M710030</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-18T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Order By within Preceding Load</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288673#M710031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm thinking it's not possible either. I ended up creating a new table to deal with this. I was afraid that it would add load time or memory usage, but it doesn't seem to be the case even working with several million records. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 17:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288673#M710031</guid>
      <dc:creator />
      <dc:date>2011-07-19T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Order By within Preceding Load</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288674#M710032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm thinking it's not possible either. I ended up creating a new table to deal with this. I was afraid that it would add load time or memory usage, but it doesn't seem to be the case even working with several million records. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 17:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-within-Preceding-Load/m-p/288674#M710032</guid>
      <dc:creator />
      <dc:date>2011-07-19T17:07:23Z</dc:date>
    </item>
  </channel>
</rss>

