<?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 Help with Mapping Table and Apply Map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449699#M490475</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;I am relatively new to Qlikview but have come across a stumbling block.&amp;nbsp; I am trying to merge 2 separate SQL tables into one and create a relationship between a field called fixcode in TABLE1 (OPENCALL) and a field called code in TABLE2 (FIXCODE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been advised to use an APPLYMAP function in my LOAD script, but I have never done one before.&lt;/P&gt;&lt;P&gt;I have attached a copy of the details in my load script at the moment in text pad format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my OPENCALL table the code is in a single string separated by hyphens.&amp;nbsp; It is stored in a field called fixcode. Therefore my code looks likes this:&lt;/P&gt;&lt;P&gt;FLT0-CRPR-RRCL-SSWO&lt;/P&gt;&lt;P&gt;RQST-CORP-RCC1-NWSP&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my FIXCODE table all of the codes are stored in a field called code and each 4 digit code is entered into a row.&amp;nbsp; Theres is also another field called descx which sets a value to the code.&amp;nbsp; In ths Table it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="114" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 227px; HEIGHT: 116px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;descx&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FLT0&lt;/TD&gt;&lt;TD&gt;Fault&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;RQST&lt;/TD&gt;&lt;TD&gt;Request&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;RCC1&lt;/TD&gt;&lt;TD&gt;Oracle&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SSWO&lt;/TD&gt;&lt;TD&gt;Password Reset&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be amending my script to amend the OPENCALL table so that I can put each code into seprate columns.&amp;nbsp; However what I then want to do is match the code from my OPENCALL table and match it with the FIXCODE Table so the the following will show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLT0-CRPR-RRCL-SSWO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fault-Corporate Software-Oracle-Password Reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to even start the Mapping table.&amp;nbsp; I was wondering if someone could help me figure out how to do this.&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;Jon Ditchfield&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 136px; left: -10000px;"&gt;﻿﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 14:27:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-27T14:27:51Z</dc:date>
    <item>
      <title>Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449699#M490475</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;I am relatively new to Qlikview but have come across a stumbling block.&amp;nbsp; I am trying to merge 2 separate SQL tables into one and create a relationship between a field called fixcode in TABLE1 (OPENCALL) and a field called code in TABLE2 (FIXCODE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been advised to use an APPLYMAP function in my LOAD script, but I have never done one before.&lt;/P&gt;&lt;P&gt;I have attached a copy of the details in my load script at the moment in text pad format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my OPENCALL table the code is in a single string separated by hyphens.&amp;nbsp; It is stored in a field called fixcode. Therefore my code looks likes this:&lt;/P&gt;&lt;P&gt;FLT0-CRPR-RRCL-SSWO&lt;/P&gt;&lt;P&gt;RQST-CORP-RCC1-NWSP&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my FIXCODE table all of the codes are stored in a field called code and each 4 digit code is entered into a row.&amp;nbsp; Theres is also another field called descx which sets a value to the code.&amp;nbsp; In ths Table it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="114" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 227px; HEIGHT: 116px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;descx&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FLT0&lt;/TD&gt;&lt;TD&gt;Fault&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;RQST&lt;/TD&gt;&lt;TD&gt;Request&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;RCC1&lt;/TD&gt;&lt;TD&gt;Oracle&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SSWO&lt;/TD&gt;&lt;TD&gt;Password Reset&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be amending my script to amend the OPENCALL table so that I can put each code into seprate columns.&amp;nbsp; However what I then want to do is match the code from my OPENCALL table and match it with the FIXCODE Table so the the following will show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLT0-CRPR-RRCL-SSWO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fault-Corporate Software-Oracle-Password Reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to even start the Mapping table.&amp;nbsp; I was wondering if someone could help me figure out how to do this.&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;Jon Ditchfield&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 136px; left: -10000px;"&gt;﻿﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 14:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449699#M490475</guid>
      <dc:creator />
      <dc:date>2012-09-27T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449700#M490476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping loadFixcodes:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Code,&lt;/P&gt;&lt;P&gt;Descx&lt;/P&gt;&lt;P&gt;from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opencall:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;subfield(fixcode,'-',1) as level1,&lt;/P&gt;&lt;P&gt;subfield(fixcode,'-',2) as level2,&lt;/P&gt;&lt;P&gt;subfield(fixcode,'-',3) as level3,&lt;/P&gt;&lt;P&gt;subfield(fixcode,'-',4) as level4,&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',1)) as level1desc,&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',2)) as level2desc,&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',3)) as level3desc,&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',4)) as level4desc,&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',1)) &amp;amp; '-' &amp;amp;&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',2)) &amp;amp; '-' &amp;amp;&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',3)) &amp;amp; '-' &amp;amp;&lt;/P&gt;&lt;P&gt;applymap('Fixcodes',subfield(fixcode,'-',4)) as fulldescx&lt;/P&gt;&lt;P&gt;from Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 14:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449700#M490476</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-09-27T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449701#M490477</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;I am getting the following Script Error:&lt;/P&gt;&lt;P&gt;Cannot open file c:\Documents and Setting\ditcjz\Desktop\opencall&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449701#M490477</guid>
      <dc:creator />
      <dc:date>2012-09-27T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449702#M490478</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;I have a connection to the DB, I had to amend my load script.&amp;nbsp; However now when I amend my Load script, a message occurs saying no such field fixcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a copy of my load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449702#M490478</guid>
      <dc:creator />
      <dc:date>2012-09-28T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449703#M490479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table fixcode from which you are trying to load doesn't have a field fixcode, but code. However, I think you're referencing the wrong table for the Opencall load and should load from your opencall table instead which does have a field named fixcode. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449703#M490479</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-09-28T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Mapping Table and Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449704#M490480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help.&amp;nbsp; It was more than what I was expecting to be honest and its made my report look alot better.&amp;nbsp; Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 10:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Mapping-Table-and-Apply-Map/m-p/449704#M490480</guid>
      <dc:creator />
      <dc:date>2012-09-28T10:08:43Z</dc:date>
    </item>
  </channel>
</rss>

