<?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: How to recode using mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-recode-using-mapping/m-p/1678219#M593209</link>
    <description>&lt;P&gt;Enclosed my ZIP file consists of QVW and Raw data.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2020 11:16:44 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2020-02-22T11:16:44Z</dc:date>
    <item>
      <title>How to recode using mapping</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-using-mapping/m-p/1678218#M593208</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;(A) Below is GL Tabe for TDS :-&lt;/P&gt;&lt;P&gt;SOURCE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GL_CODE_&lt;BR /&gt;TDS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80020&lt;/P&gt;&lt;P&gt;(B) Below is GL Tabe for PMC :-&lt;/P&gt;&lt;P&gt;SOURCE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GL_CODE_&lt;BR /&gt;PMC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000200&lt;/P&gt;&lt;P&gt;(c) I Like to make the table become like below :-&lt;/P&gt;&lt;P&gt;SOURCE&amp;nbsp; &amp;nbsp; &amp;nbsp; GL_CODE_&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GL_CODE_NEW&lt;BR /&gt;PMC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5000200&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; REVENUE&lt;BR /&gt;TDS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;REVENUE&lt;/P&gt;&lt;P&gt;(D) i Have try below load script :-&lt;/P&gt;&lt;P&gt;MAP_TDS:&lt;BR /&gt;LOAD GL_CODE_,&lt;BR /&gt;GL_CODE_NEW&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\pauly\Dropbox\5 QV_Final\QV_INPUT\Map_PNL.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is TDS);&lt;/P&gt;&lt;P&gt;MAP_PMC:&lt;BR /&gt;LOAD GL_CODE_,&lt;BR /&gt;GL_CODE_NEW&lt;BR /&gt;FROM&lt;BR /&gt;C:\TEMP\Map_PMC.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is TDS);&lt;/P&gt;&lt;P&gt;GL_TABLE:&lt;BR /&gt;LOAD&lt;BR /&gt;'TDS' as SOURCE,&lt;BR /&gt;@1:16T as GL_CODE_,&lt;BR /&gt;@17:47T as GL_DESC_,&lt;BR /&gt;if(@102:103T = '-',@86:101T*-1,@86:101T)*-1 as [Amount],&lt;BR /&gt;ApplyMap('MAP_TDS',@1:16T,'OTHERS') as [REV]&lt;BR /&gt;FROM C:\TEMP\FS_TDS.TXT (ansi, fix, no labels, header is 0, record is line);&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;'PMC' as SOURCE,&lt;BR /&gt;[GL Code],&lt;BR /&gt;[GL Code] as GL_CODE_,&lt;BR /&gt;[GL Description] as GL_DESC_,&lt;BR /&gt;[C/D] as Amount,&lt;BR /&gt;ApplyMap('MAP_PMC',[GL Code],'OTHERS') as [REV]&lt;BR /&gt;FROM [C:\TEMP\GL_PMC.csv](txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;It does not work, hope some one can advise me where i go wrong ?&lt;/P&gt;&lt;P&gt;Remark : The reasons I want to using Mapping is because I can reduce the expression at load script , also my actually application I have about 100 GL Code , any change I can modify at excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&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;</description>
      <pubDate>Sat, 22 Feb 2020 13:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-using-mapping/m-p/1678218#M593208</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-02-22T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to recode using mapping</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-recode-using-mapping/m-p/1678219#M593209</link>
      <description>&lt;P&gt;Enclosed my ZIP file consists of QVW and Raw data.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 11:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-recode-using-mapping/m-p/1678219#M593209</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2020-02-22T11:16:44Z</dc:date>
    </item>
  </channel>
</rss>

