<?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: load new data from last reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881767#M989297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you finally manage to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 12:32:11 GMT</pubDate>
    <dc:creator>alex_millan</dc:creator>
    <dc:date>2015-07-20T12:32:11Z</dc:date>
    <item>
      <title>load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881755#M989285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;I have SQL script, where I get respondentID and key variable "TrackId" which I load every morning.&lt;/P&gt;&lt;P&gt;Then I have another query where I load data based on &lt;SPAN style="font-size: 13.3333330154419px;"&gt; "TrackId".&amp;nbsp; Then I store the second data to qvd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The problem is the second query has more "TrackId" value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If I use max(TrackId) from qvd file, I skip some numbers.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is it possible, when I load the first query, store last or maximum value of "TrackId" and then use this variable to load new data from the second query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The new max variable should be from my last reload, not today. &lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881755#M989285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T15:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881756#M989286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir, perhaps this example may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp: LOAD min(TrackID) as MinTrackId, max(TrackID) as MaxTrackId Resident YourTable;&lt;/P&gt;&lt;P&gt;Let vMinTrackId = Num(Peek('MinTrackId', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;Let vMaxTrackId = Num(Peek('MaxTrackId', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you use these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881756#M989286</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-15T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881757#M989287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can just use something like &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where not exists (T&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rackId,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rackId&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;See also this thread:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="https://community.qlik.com/message/770264"&gt;Re: Conditional load based on an incremental load&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881757#M989287</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-15T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881758#M989288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it won't work for me, because when I reload new data each morning &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxTrackId&amp;nbsp; will be updated on new data, not on previous reload. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;For example yesterday &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxTrackId&amp;nbsp; was 1452366, after new reload &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxTrackId&amp;nbsp; will be 1479899. I lost some numbers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Qvd file has more data in TrackID field.&amp;nbsp; I did like you suggest, but miss some numbers.Because 2 database used different time stamp main use EDT and the second use GTM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp: LOAD min(TrackID) as MinTrackId, max(TrackID) as MaxTrackId Resident YourTable;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMinTrackId = Num(Peek('MinTrackId', 0, 'Temp'));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMaxTrackId = Num(Peek('MaxTrackId', 0, 'Temp'));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If I will use Resident qvd, my TrackId is bigger than main (first) query&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If I will use Resident fist query, my TrackId is updated based on last reload&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to define max value TrackID from previous reload in first query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881758#M989288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881759#M989289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps we may go for another approach, perhaps you may store those daily values on a table to be able to use them later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds a bit odd for me too but if it may work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881759#M989289</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-15T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881760#M989290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;How works condition&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where not exists (T&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rackId,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;T&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px;"&gt;rackId&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;my screenshots&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from main query I take TrackID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92981_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from the second query I load only that info which match by Id and UserTrackID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92982_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;140902159 is the last number for yesterday reload.&amp;nbsp; when I use vmaxTrackID from qvd file, the number is bigger than in my main query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Id I called paramValue.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;USERTRACKID:&lt;/P&gt;&lt;P&gt;SQL SELECT paramValue, respondentID&lt;/P&gt;&lt;P&gt;FROM cRespondentData3rdInfo WHERE surveyID=$(surveyID)&amp;nbsp; and isnumeric(paramValue)=1&lt;/P&gt;&lt;P&gt;and paramName='UserTrackID' and paramValue&amp;gt;$(vMaxUserTrackId);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TempTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(Distinct paramValue,',' ) as ConcatValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERTRACKID;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vValue=FieldValue('ConcatValue',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table TempTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMENT_URLs:&lt;/P&gt;&lt;P&gt;SQL SELECT [Id] as paramValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[SessionId]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[TimeStamp]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Ip]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Url]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [SEAC].[dbo].[UserTrack] where Id in ($(vValue));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; TempTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chr(39) &amp;amp; Concat(Distinct SessionId,Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp;Chr(39) as ConcatValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMENT_URLs;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vValue2=FieldValue('ConcatValue',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table TempTable;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SESSIONS: &lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SessionId]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[TimeStamp]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Ip]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Url]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Id] as paramValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [SEAC].[dbo].[UserTrack] where SessionId in ($(vValue2))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER BY SessionId, [TimeStamp] ASC; &lt;/P&gt;&lt;P&gt;CONCATENATE &lt;/P&gt;&lt;P&gt;LOAD DISTINCT * FROM &lt;C&gt;(qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp; WHERE NOT EXISTS(paramValue);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used condition not exists, then there is no link between 2 database. When I call UserTrackId =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;140902159 from main, there is no link to his sessionID &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881760#M989290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T18:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881761#M989291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I probably found out how to do it.&lt;/P&gt;&lt;P&gt;I changed order of loading&lt;/P&gt;&lt;P&gt;the second query loading the first and then the main&lt;/P&gt;&lt;P&gt;When I load the main query and create temp with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxTrackId.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Now I got other problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if there is no new data, I got a message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92983_Capture.PNG" style="height: 144px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;USERTRACKID:&lt;/P&gt;&lt;P&gt;SQL SELECT paramValue, respondentID&lt;/P&gt;&lt;P&gt;FROM cRespondentData3rdInfo WHERE surveyID=$(surveyID)&amp;nbsp; and isnumeric(paramValue)=1&lt;/P&gt;&lt;P&gt;and paramName='UserTrackID' and paramValue&amp;gt;$(vMaxUserTrackId);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TempTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(Distinct paramValue,',' ) as ConcatValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERTRACKID;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vValue=FieldValue('ConcatValue',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table TempTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMENT_URLs:&lt;/P&gt;&lt;P&gt;SQL SELECT [Id] as paramValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[SessionId]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[TimeStamp]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Ip]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Url]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [SEAC].[dbo].[UserTrack] where Id in ($(vValue));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE &lt;/P&gt;&lt;P&gt;LOAD DISTINCT * FROM &lt;C&gt;(qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What condition can I add if there is no new data, just load qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881761#M989291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T19:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881762#M989292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to check out if there are new records to load, perhaps a preliminar count would it serve for this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881762#M989292</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-15T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881763#M989293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never used it. Could you show how?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881763#M989293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T19:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881764#M989294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me neither, just giving a suggestion, but it you´re sure this error is caused by the non existence of new records, you can make a select count first and condition the load transaction that is giving you problems only when this count is greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, in your screen shot it seems the cause is an incorrect syntax, could it be? are you sure this where clause at the end of the sql transaction works well? Is the variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vValue taking a value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can check this out by using the debug mode in running the script. Just to rest assured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881764#M989294</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-15T20:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881765#M989295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works well, if there is Id grater than vmaxTrackId. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881765#M989295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881766#M989296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that this error occurs when &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vValue is empty (at least in the screenshot seems to be empty).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If so, perhaps you can implement an if before loading your '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COMMENT_URLs' table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If len('$(vValue)') &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMENT_URLs:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT [Id] as paramValue, [SessionId], [TimeStamp], [Ip], [Url]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [SEAC].[dbo].[UserTrack] where Id in ($(vValue));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End if&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm not sure if it would work but perhaps it's worth to try.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881766#M989296</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-16T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881767#M989297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you finally manage to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881767#M989297</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-07-20T12:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881768#M989299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an idea how it might work.&lt;/P&gt;&lt;P&gt;From my main file after each reload I create vMaxUserTrackId in Temp table. (last keyID from the main file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I added new temp table to find vLastNumber, which take only 1 max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;keyID) from the main file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;SELECT TOP 1 paramValue FROM [cRespondentData] as cRD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Let vLastNumber = Num(Peek('paramValue', 0, 'MaxValue'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I'm stuck &lt;/P&gt;&lt;P&gt;I need a condition&lt;/P&gt;&lt;P&gt;IF $(vMaxUserTrackId)&amp;gt;$(vLastNumber)&lt;/P&gt;&lt;P&gt;THEN&amp;nbsp; &lt;/P&gt;&lt;P&gt;should be load all scripts&lt;/P&gt;&lt;P&gt;ELSE should be load only my qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I added to my QV scripts the condition below&lt;/P&gt;&lt;P&gt;IF $(vMaxUserTrackId)&amp;gt;$(vLastNumber)&lt;/P&gt;&lt;P&gt;THEN&lt;/P&gt;&lt;P&gt;USERTRACKID:&lt;/P&gt;&lt;P&gt;SQL SELECT paramValue, respondentID&lt;/P&gt;&lt;P&gt;FROM cRespondentData3rdInfo WHERE surveyID=$(surveyID)&amp;nbsp; and isnumeric(paramValue)=1&lt;/P&gt;&lt;P&gt;and paramName='UserTrackID' and paramValue&amp;gt;$(vMaxUserTrackId); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting from THEN QV reads like wrong expression.&lt;/P&gt;&lt;P&gt;Any suggestion, I'd be appreciated.&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881768#M989299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881769#M989301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out where the problem is&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF $(vMaxUserTrackId)&amp;gt;$(vLastNumber) THEN&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF and then should be in 1 row &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but when I load only qvd file&lt;/P&gt;&lt;P&gt;LOAD AutoNumber(paramValue) as Auto_Id,*&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt;(qvd)&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER BY SessionId, [TimeStamp] ASC; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but gave me script error&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93484_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;how can I avoid it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881769#M989301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T15:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: load new data from last reload</title>
      <link>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881770#M989303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like qvd file can't use order by.&lt;/P&gt;&lt;P&gt;I used resident load &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-new-data-from-last-reload/m-p/881770#M989303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T15:16:59Z</dc:date>
    </item>
  </channel>
</rss>

