<?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: wrong date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179666#M382494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, wil try and let you know. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 08:52:55 GMT</pubDate>
    <dc:creator>master_student</dc:creator>
    <dc:date>2016-07-19T08:52:55Z</dc:date>
    <item>
      <title>wrong date field</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179664#M382492</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 would like a implement an incremental load ; get the historical records plus result of today's query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;transaction:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from 'transaction_Dist1507.qvd' (qvd);&lt;/P&gt;&lt;P&gt;//LAST modfied date&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Last_Updated_Date:&lt;/P&gt;&lt;P&gt;load max(STARTOFCHARGINGDATE) as Maxdate&lt;/P&gt;&lt;P&gt;Resident transaction;&lt;/P&gt;&lt;P&gt;//store max date into a variable&lt;/P&gt;&lt;P&gt;let Last_Updated_Date = Peek('Maxdate');&lt;/P&gt;&lt;P&gt;//deletetransactiontable&lt;/P&gt;&lt;P&gt;drop table transaction;&lt;/P&gt;&lt;P&gt;//load incremantal data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [] (XPassword is );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;transation_tmp: &lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;date#(Date( REPORT_DATE, 'DD/MM/YYYY')) as Date_Transaction&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;tt.*,&lt;/P&gt;&lt;P&gt;d.aliasname as alias_debit&lt;/P&gt;&lt;P&gt;from (&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;trans.*,&lt;/P&gt;&lt;P&gt;tab.aliasname alias_credit&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp; RECHARGE_PM.POS_REPORT trans , RECHARGE_PM.DUMP_RETAILER tab &lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;trans.credit_ACTOR_ID=tab.ACTORE_ID(+)&lt;/P&gt;&lt;P&gt;and report_type = 'TSR001'&lt;/P&gt;&lt;P&gt;and debited_ACTOR_ID IN ($(vActore)) &lt;/P&gt;&lt;P&gt;AND FUNCTION = 243 ) tt,RECHARGE_PM.DUMP_RETAILER d&lt;/P&gt;&lt;P&gt;where tt.debited_actor_id=d.actore_id(+)&lt;/P&gt;&lt;P&gt;and tt.STARTOFCHARGINGDATE &amp;gt; $(Last_Updated_Date) ;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;transaction:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;AutoNumber(date( Date_Transaction,'DD/MM/YYYY'),'%Date ID') as [%Date ID]&lt;/P&gt;&lt;P&gt;resident transation_tmp;&lt;/P&gt;&lt;P&gt;//concatenate with qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from 'transaction_Dist1507.qvd' (qvd);&lt;/P&gt;&lt;P&gt;//replace old qvd file&lt;/P&gt;&lt;P&gt;store transaction into 'transaction_Dist1507.qvd' (qvd);&lt;/P&gt;&lt;P&gt;drop table transation_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//script calendar (2015/2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I didn't get the right Date ID that corresponds with the date field in my qvd (the dates of my transactions are not correct). see what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="227" src="https://community.qlik.com/legacyfs/online/131750_Capture.PNG" style="height: 227px; width: 214.562px;" width="215" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you suggest to fix that?&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>Tue, 19 Jul 2016 08:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179664#M382492</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-19T08:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: wrong date field</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179665#M382493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&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;and tt.STARTOFCHARGINGDATE &amp;gt; '$(Last_Updated_Date)' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 08:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179665#M382493</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-07-19T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: wrong date field</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179666#M382494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, wil try and let you know. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 08:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179666#M382494</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-19T08:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: wrong date field</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179667#M382495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pb seems fixed but I didn't know why I am still getting the wrong date ID for the date 18/07/2016. see bellow: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131752_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 09:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-date-field/m-p/1179667#M382495</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-19T09:27:06Z</dc:date>
    </item>
  </channel>
</rss>

