<?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: Case 887 User enter wrong date , How to use Mapping to correct it ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709564#M725006</link>
    <description>&lt;P&gt;Hi Saran&lt;/P&gt;&lt;P&gt;This happen only 1 in million. When this happen all my YearMonth field get very messy. Now just using one line load script , it work fine.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 01:28:00 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2020-06-10T01:28:00Z</dc:date>
    <item>
      <title>Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709253#M724998</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;My user have accidentally enter date &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;14/12/2030&lt;/FONT&gt;&lt;/STRONG&gt; into GL Date . The correct date should be 14/12/2014.&amp;nbsp; ( Now my Year field have year from 2020 till 2030 which cause the major problem )&lt;/P&gt;&lt;P&gt;May i know how can i using Mapping to recode the date ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map_Date:&lt;BR /&gt;LOAD GL_CODE,&lt;BR /&gt;GL_DATE,&lt;BR /&gt;AMOUNT,&lt;BR /&gt;GL_DATE1&lt;BR /&gt;FROM&lt;BR /&gt;MapGL_PENANG.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is TDSS);&lt;/P&gt;&lt;P&gt;Mapping_table :-&lt;/P&gt;&lt;TABLE width="283"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="87"&gt;&lt;FONT color="#0000FF"&gt;GL_CODE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="109"&gt;&lt;FONT color="#993366"&gt;GL_DATE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="87"&gt;&lt;FONT color="#FF0000"&gt;AMOUNT&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;90511&lt;/TD&gt;&lt;TD&gt;14/12/2014&lt;/TD&gt;&lt;TD&gt;113&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea is&amp;nbsp; when GL_CODE = 90511 and Amount = 113.00 Replace GL_Date to 14/12/2014 , My script :-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ApplyMap('Map_Date',@1:16T,@50:52T) AS GL_DATE_NEW,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;GL_TABLE:&lt;BR /&gt;LOAD&lt;BR /&gt;'TDSS' as SOURCE,&lt;BR /&gt;@1:16T as GL_CODE_,&lt;BR /&gt;date#(@58:68T,'DD/MM/YYYY') as GL_Date_,&lt;BR /&gt;if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount],&lt;BR /&gt;ApplyMap('Map_Date',&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;@1:16T&lt;/FONT&gt;&lt;/STRONG&gt;,&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;@50:52T&lt;/STRONG&gt;&lt;/FONT&gt;) AS GL_DATE_NEW,&lt;/P&gt;&lt;P&gt;My question is above highlight red color field it is correct&amp;nbsp;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ENTER WRONG GL dATA.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35182i18507CBC71F7ACBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ENTER WRONG GL dATA.png" alt="ENTER WRONG GL dATA.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709253#M724998</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709441#M725000</link>
      <description>&lt;P&gt;Maybe try using an If statement instead of Map&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(( GL_CODE=90511 and AMOUNT=113), '14/12/2014', date#(@58:68T,'DD/MM/YYYY')) as GL_DATE_NEW &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jun 2020 15:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709441#M725000</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-09T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709445#M725001</link>
      <description>&lt;P&gt;However, you can also use a mapping table if you have multiple replacements&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Map_Table:
Mapping Load
'90511'&amp;amp;'112' as Key
'14/12/2014' as Value
Autogenerate(1);

fact:
Load *,
Applymap('Map_Table', GL_CODE&amp;amp;AMOUNT, date#(@58:68T, 'DD/MM/YYYY')) as GL_DATE_NEW&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 15:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709445#M725001</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-09T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709481#M725003</link>
      <description>&lt;P&gt;May be first you should pull all invalid dates. For example any date which is greater than Today, will give some sort of invalid date. I think you have found only one case here 14/12/2030. There might be more sometimes.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 17:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709481#M725003</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-09T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709562#M725004</link>
      <description>&lt;P&gt;HI Sir&lt;/P&gt;&lt;P&gt;Thank you very much , i try and get error code :-&lt;/P&gt;&lt;P&gt;Syntax error, missing/misplaced FROM:&lt;BR /&gt;Map_Table:&lt;BR /&gt;Mapping Load&lt;BR /&gt;'90511'&amp;amp;'113' as Key&lt;BR /&gt;'14/12/2014' as Value&lt;BR /&gt;Autogenerate(1)&lt;BR /&gt;Map_Table:&lt;BR /&gt;Mapping Load&lt;BR /&gt;'90511'&amp;amp;'113' as Key&lt;BR /&gt;'14/12/2014' as Value&lt;BR /&gt;Autogenerate(1)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 01:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709562#M725004</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-06-10T01:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709563#M725005</link>
      <description>&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;This work fine.&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 01:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709563#M725005</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-06-10T01:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Case 887 User enter wrong date , How to use Mapping to correct it ?</title>
      <link>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709564#M725006</link>
      <description>&lt;P&gt;Hi Saran&lt;/P&gt;&lt;P&gt;This happen only 1 in million. When this happen all my YearMonth field get very messy. Now just using one line load script , it work fine.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 01:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-887-User-enter-wrong-date-How-to-use-Mapping-to-correct-it/m-p/1709564#M725006</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-06-10T01:28:00Z</dc:date>
    </item>
  </channel>
</rss>

