<?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 Getting variable from previous load to determine range of next load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276135#M1201931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John, Hello Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank so much for your answers. That helps so much.&lt;/P&gt;&lt;P&gt;I always forget, that you'll get an variable value with function "peek". Thats still different to some other programming languages I know.&lt;/P&gt;&lt;P&gt;Thank again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 10:34:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-13T10:34:16Z</dc:date>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276131#M1201927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The task: there's a huge db table which will be loaded into qlikview. To decrease the load time of the following loads I will store the data a qvd file.&lt;/P&gt;&lt;P&gt;When the document is opened next time, I will load the data from the qvd file. Then I would get a max value of the primary key = id. Then I will load additional data from the db table. Just a kind of incremental load.&lt;/P&gt;&lt;P&gt;script must be something like this:&lt;/P&gt;&lt;P&gt;tickets:&lt;/P&gt;&lt;P&gt;LOAD id, ticket FROM ticket.qvd;&lt;/P&gt;&lt;P&gt;GET (???) max(id) as max_id FROM tickets;&lt;/P&gt;&lt;P&gt;SQL SELECT id, ticket FROM ticket_table WHERE id &amp;gt; max_id;&lt;/P&gt;&lt;P&gt;STORE tickets INTO Ticket.QVD;&lt;/P&gt;&lt;P&gt;I hope the explanation is understandable.&lt;/P&gt;&lt;P&gt;I anyone has an idea I would be thankful, best Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276131#M1201927</guid>
      <dc:creator />
      <dc:date>2010-09-10T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276132#M1201928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Tickets:&lt;BR /&gt;LOAD ID, Ticket&lt;BR /&gt;FROM ticket.qvd (QVD)&lt;BR /&gt;;&lt;BR /&gt;MaxIDTable:&lt;BR /&gt;LOAD max(ID) as MaxIDField&lt;BR /&gt;RESIDENT tickets&lt;BR /&gt;;&lt;BR /&gt;LET MaxIDVariable = peek(MaxIDField)&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE MaxIDTable&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (Tickets)&lt;BR /&gt;LOAD *&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT ID, Ticket&lt;BR /&gt;FROM ticket_table&lt;BR /&gt;WHERE ID &amp;gt; $(MaxIDVariable)&lt;BR /&gt;;&lt;BR /&gt;STORE Tickets INTO ticket.qvd (QVD)&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276132#M1201928</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-10T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276133#M1201929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would do as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MaxTicketID:LOAD Max(id) as max_id FROM ticket.qvd (qvd);&lt;BR /&gt;LET vMaxID = Peek('max_id'); // This will store your maximum id in the variable&lt;BR /&gt;DROP TABLE MaxTicketID; // You no longer need this temp table&lt;BR /&gt;Tickets:LOAD id, ticket FROM ticket.qvd (qvd);LOAD *;SQL SELECT id, ticket FROM ticket_table WHERE id &amp;gt; $(vMaxID);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;EDIT: I've just seen John's post after sending. Anyway, I think the work it's worth posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276133#M1201929</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-10T17:44:45Z</dc:date>
    </item>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276134#M1201930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approaches are similar, but they &lt;EM&gt;are&lt;/EM&gt; a little different. I'm not sure which would perform better. Since performance is the goal here, I'd suggest trying both approaches to see which executes more quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276134#M1201930</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-10T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276135#M1201931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John, Hello Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank so much for your answers. That helps so much.&lt;/P&gt;&lt;P&gt;I always forget, that you'll get an variable value with function "peek". Thats still different to some other programming languages I know.&lt;/P&gt;&lt;P&gt;Thank again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 10:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276135#M1201931</guid>
      <dc:creator />
      <dc:date>2010-09-13T10:34:16Z</dc:date>
    </item>
    <item>
      <title>Getting variable from previous load to determine range of next load</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276136#M1201932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of curiousity, DID you performance test both approaches? And if so, which was faster?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 17:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-variable-from-previous-load-to-determine-range-of-next/m-p/276136#M1201932</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-13T17:50:57Z</dc:date>
    </item>
  </channel>
</rss>

