<?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: Where clause in preceding load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249325#M855877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so what I am trying to achieve is to perform Incremental Load. Scenario below:&lt;/P&gt;&lt;P&gt;I have base QVD( Agentproductivity.qvd) and located in the folder, which has data for last 18 months and I have load new data for last 3 days everyday. So I have written a script like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Temp1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'M/D/YYYY h:mm:ss[.fff] TT')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxLastUp&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;from&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vQVD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;\AgentProductivity.qvd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//Store the Maximum value of LaststatusUpdate in a variable.&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;MaxLastUp&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue; background: yellow;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;('MaxLastUp',-1);&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Temp1;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ODBC&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;CONNECT&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; SQLSource;&lt;BR /&gt; &lt;BR /&gt; Temp1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Reference&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue; background: yellow;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(MaxLastUp)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; select&lt;BR /&gt; Reference,&lt;BR /&gt; &lt;SPAN style="background: yellow;"&gt;datetime&lt;/SPAN&gt; as &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;from activity_lead al&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: yellow;"&gt;where date(ai.datetime)&amp;gt;= DATE_SUB(NOW(),INTERVAL 3 DAY);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 09:43:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-10T09:43:08Z</dc:date>
    <item>
      <title>Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249318#M855870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to find out if I can use the "Where" clause&amp;nbsp; in preceding load statement to filter date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249318#M855870</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249319#M855871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249319#M855871</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-10T09:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249320#M855872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain a little bit your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a If condition to make it, buat y don´t know if it´s correct for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249320#M855872</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2017-02-10T09:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249321#M855873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. Do you face any issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249321#M855873</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-02-10T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249322#M855874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249322#M855874</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2017-02-10T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249323#M855875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Yes...you can..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;For your reference...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Tab1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;STRONG&gt;Load&amp;nbsp; *,max(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px;"&gt;salary) as maxsal&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit;"&gt;where date='01/10/2017'&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;group by empname,Date;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load empname,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; salary&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;from----------(.txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249323#M855875</guid>
      <dc:creator>surendraj</dc:creator>
      <dc:date>2017-02-10T09:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249324#M855876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this &lt;A href="https://www.tutorialspoint.com/qlikview/qlikview_preceding_load.htm" title="https://www.tutorialspoint.com/qlikview/qlikview_preceding_load.htm"&gt;https://www.tutorialspoint.com/qlikview/qlikview_preceding_load.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;use where condition in first block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope resolves&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249324#M855876</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2017-02-10T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249325#M855877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so what I am trying to achieve is to perform Incremental Load. Scenario below:&lt;/P&gt;&lt;P&gt;I have base QVD( Agentproductivity.qvd) and located in the folder, which has data for last 18 months and I have load new data for last 3 days everyday. So I have written a script like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Temp1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'M/D/YYYY h:mm:ss[.fff] TT')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxLastUp&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;from&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vQVD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;\AgentProductivity.qvd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//Store the Maximum value of LaststatusUpdate in a variable.&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;MaxLastUp&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue; background: yellow;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;('MaxLastUp',-1);&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Temp1;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ODBC&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;CONNECT&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; SQLSource;&lt;BR /&gt; &lt;BR /&gt; Temp1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Reference&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue; background: yellow;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; background: yellow; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(MaxLastUp)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; select&lt;BR /&gt; Reference,&lt;BR /&gt; &lt;SPAN style="background: yellow;"&gt;datetime&lt;/SPAN&gt; as &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;from activity_lead al&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="background: yellow;"&gt;where date(ai.datetime)&amp;gt;= DATE_SUB(NOW(),INTERVAL 3 DAY);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249325#M855877</guid>
      <dc:creator />
      <dc:date>2017-02-10T09:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249326#M855878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Make it like this&amp;nbsp;&amp;nbsp; (Single QUOTES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="background: yellow; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;LastStatusUpdateDate&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;gt; '&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="background: yellow; color: gray; font-family: 'Courier New'; font-size: 9pt;"&gt;$(MaxLastUp)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 10:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249326#M855878</guid>
      <dc:creator />
      <dc:date>2017-02-10T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249327#M855879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with &lt;A href="https://community.qlik.com/qlik-users/52025"&gt;vikasmahajan&lt;/A&gt;‌ here, you should put the $(MaxLastUp) variable in the where clause of the SQL query, otherwise you will still be extracting more records than you need, even if they are filtered out in the preceding load. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249327#M855879</guid>
      <dc:creator>cmsjamesgreen</dc:creator>
      <dc:date>2017-02-10T11:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249328#M855880</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;Create a variable say: Vdate= so n so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;B,Yourdate where Yourdate&amp;gt;=$(Vdate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select * from so n so table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249328#M855880</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-10T11:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in preceding load</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249329#M855881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can. But that's often considered bad practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be careful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-preceding-load/m-p/1249329#M855881</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-10T11:28:19Z</dc:date>
    </item>
  </channel>
</rss>

