<?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: Problem with date fields while applying Incremental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835578#M293936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GIzzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this solution this may work,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Let vUPDATE_DATE=Date(Floor(peek('Max_UPDATE_DATE',0,'table1')),'&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DD-MMM-YYYY&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;sql select * from table1 where &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;UPDATE_DATE &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&amp;gt; '$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;vUPDATE_DATE)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 09:22:37 GMT</pubDate>
    <dc:creator>qlikmsg4u</dc:creator>
    <dc:date>2015-06-05T09:22:37Z</dc:date>
    <item>
      <title>Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835571#M293929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to apply&amp;nbsp; Insert and update incremental load.&lt;/P&gt;&lt;P&gt;But I have been facing issue with date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Date(Max(UPDATE_DATE)) as Max_UPDATE_DATE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;$(QVDPath)table1.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Let vUPDATE_DATE=Floor(peek('Max_UPDATE_DATE',0,'table1'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;PO_LINES_DET:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;LOAD * ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;tab&lt;/SPAN&gt;le1 &lt;/SPAN&gt;WHERE UPDATE_DATE&amp;gt;$(vUPDATE_DATE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here the variable is storing date as number,so I tried&amp;nbsp; converting&amp;nbsp; it to date by TO_DATE('$(vUPDATE_DATE)','MM-DD-YYYY HH24:MI:SS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am getting error.also many of the oracle functions like convert(),&amp;nbsp; converting into number is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise.I am stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 06:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835571#M293929</guid>
      <dc:creator>gizzel123</dc:creator>
      <dc:date>2015-06-05T06:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835572#M293930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gizzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to convert the date number in variable itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please post sample application, so that it will be easy for us to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 07:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835572#M293930</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-06-05T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835573#M293931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What QLIKmsg4u is saying is to try to convert the date value in QlikView Script instead of in SQL. for example this could work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'courier new', courier;"&gt;Let vUPDATE_DATE=Date(Floor(peek('Max_UPDATE_DATE',0,'table1')),'MM-DD-YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 07:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835573#M293931</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-05T07:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835574#M293932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay now I have variable in date format...but the &lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;UPDATE_DATE is in Date time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;sql select * from table1 where to_date(&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;vUPDATE_DATE,'MM-DD-YYYY'&lt;/SPAN&gt;)&amp;gt;$(&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;vUPDATE_DATE) is giving me error : NOT A VALID MONTH.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 08:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835574#M293932</guid>
      <dc:creator>gizzel123</dc:creator>
      <dc:date>2015-06-05T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835575#M293933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gizzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try your syntax like this :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;sql select * from table1 where "Your Date Column" &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;&amp;gt; $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;vUPDATE_DATE) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;and if you want timestamps in vUPDATE_DATE remove Floor.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 08:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835575#M293933</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-06-05T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835576#M293934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a stray "v" prefix on your field name. Do you need the to_date()? An you will need to quote the literal date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the variable as described above by Peter and then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;sql select * from table1 where &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;UPDATE_DATE &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;&amp;gt; '$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;vUPDATE_DATE)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;sql select * from table1 where &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;UPDATE_DATE &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;&amp;gt; to_date('$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;vUPDATE_DATE)', 'MM-D-YYYY')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835576#M293934</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-05T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835577#M293935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I want my &lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;"Date Column"&amp;nbsp; ie UPDATE_DATE into MM-DD-YYYY format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835577#M293935</guid>
      <dc:creator>gizzel123</dc:creator>
      <dc:date>2015-06-05T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835578#M293936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GIzzel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this solution this may work,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;Let vUPDATE_DATE=Date(Floor(peek('Max_UPDATE_DATE',0,'table1')),'&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DD-MMM-YYYY&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;sql select * from table1 where &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;UPDATE_DATE &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;&amp;gt; '$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;vUPDATE_DATE)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835578#M293936</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-06-05T09:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date fields while applying Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835579#M293937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But here UPDATE_DATE is in DATE-time format ..and &lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;to_date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'courier new', courier; color: #000000;"&gt;UPDATE_DATE,'MM-DD-YYYY'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;) is not working .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-fields-while-applying-Incremental-Load/m-p/835579#M293937</guid>
      <dc:creator>gizzel123</dc:creator>
      <dc:date>2015-06-05T09:58:41Z</dc:date>
    </item>
  </channel>
</rss>

