<?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: Mapping question. Linking two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607328#M683568</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 guess that keys are not supposed to have three symbols&lt;/P&gt;&lt;P&gt;So what you want to do if there is some ambiguity ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 19:07:38 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2014-02-19T19:07:38Z</dc:date>
    <item>
      <title>Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607319#M683550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got to link two tables where the key field of the first table is the part of a key field of the second table.&lt;/P&gt;&lt;P&gt;1. table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 182px; height: 90px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;edf&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;xyz&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 189px; height: 101px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key1&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;abc123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;edf&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;789xyz&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to link these two tables and get the result something like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="100" style="border: 1px solid rgb(0, 0, 0); width: 299px; height: 102px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;edf&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;edf&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;xyz&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;789xyz&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;displayname3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i found mapsubstring function but It seems will not work for this case. Have you got any advise about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help in any case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607319#M683550</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2014-02-19T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607320#M683551</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;Have you tried applymap() function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;chiru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607320#M683551</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-02-19T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607321#M683552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i think you are looking for function called applymap().&lt;/P&gt;&lt;P&gt;The problematic Key1 field could be clensed by KeepChar() if the problem is only with numbers, that depends on what values could be found on Key1 in fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mapping requires that the first table would be loaded as a mapping load, it will not be displayed later on in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps with your problem, if it is in fact more complicated maybe some example of the data that you can face in the Key1 could help me understand what are you dealing with in fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607321#M683552</guid>
      <dc:creator />
      <dc:date>2014-02-19T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607322#M683553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sergejs,&lt;/P&gt;&lt;P&gt;You can use Purgechar and then just join them. Please check out the attached file.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607322#M683553</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607323#M683556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the quick responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use applymap() it will find just one record which is Key1=Key=edf, but I'm trying to get all the records where Key = Key1 or Key = part of Key1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KeepChar() also will not help as the part of the string can contain numbers and letters. So like this:&lt;/P&gt;&lt;P&gt;Key1:&lt;/P&gt;&lt;P&gt;abc123&lt;/P&gt;&lt;P&gt;abc 123&lt;/P&gt;&lt;P&gt;abcfff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607323#M683556</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2014-02-19T16:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607324#M683559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep. I've been offered to use KeepChar(), but it will not work for me as the part I want to get rid of from Key1 can contain the letters as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607324#M683559</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2014-02-19T16:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607325#M683562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And there is no general rule for this Key1 field that we could use to clean it up ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather go maybe to the source of the data to clean it up a bit.&lt;/P&gt;&lt;P&gt;As only idea (rather bad one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; ) i have is an inner join which would match all values with all other values, then when you have it in one table you could use the wildmatch fucntion&amp;nbsp; in where clause for Key and Key1 fields, so in the table you would have only matching lines of data, and this table could be then used for applymap().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607325#M683562</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607326#M683563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the problem that there is no general rule to extract the Key from Key1. Maybe it's possible to use wildmatch somehow? or something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607326#M683563</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2014-02-19T16:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607327#M683565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would give a try to inner join table 1 and table 2, then i woudl load that table residently with a clasue: WHERE wildmatch(Key1,'*'&amp;amp;Key&amp;amp;'*'); and this should return hopefully matched values, i do not know if you can have some multiplication in this, depends on the values in Key1 and Key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could use this table for mapping load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that the strings could repeat itself i do not know if this would be "bulletproof".&lt;/P&gt;&lt;P&gt;But maybe it is worth a try if the tables are not to big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607327#M683565</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607328#M683568</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 guess that keys are not supposed to have three symbols&lt;/P&gt;&lt;P&gt;So what you want to do if there is some ambiguity ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 19:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607328#M683568</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-19T19:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607329#M683570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;join are equi join in qlikview so I think to compare fields of two different tables you have to do before a full outer join and after a compare of the 2 fields&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Key, Value&lt;/P&gt;&lt;P&gt;abc, displayname1&lt;/P&gt;&lt;P&gt;edf, displayname2&lt;/P&gt;&lt;P&gt;xyz,displayname3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Key1&lt;/P&gt;&lt;P&gt;abc123&lt;/P&gt;&lt;P&gt;edf&lt;/P&gt;&lt;P&gt;789xyz&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load Key Resident table1;&lt;/P&gt;&lt;P&gt;join (tmp) load Key1 Resident table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;link:&lt;/P&gt;&lt;P&gt;load * where Flag = 1;&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Key1,&lt;/P&gt;&lt;P&gt;if(WildMatch(Key1, '*' &amp;amp; Key &amp;amp; '*'), 1, 0) as Flag&lt;/P&gt;&lt;P&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="204"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="59"&gt;Key&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="56"&gt;Key1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;abc&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;abc123&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;displayname1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;edf&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;edf&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;displayname2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;xyz&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;789xyz&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;displayname3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 22:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607329#M683570</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-19T22:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607330#M683572</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;Your code works but very slow. I guess it because of WildMatch. So finally I've ended up with the code like this which gives me the expected result and works quite fast:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Key, Value&lt;/P&gt;&lt;P&gt;abc, displayname1&lt;/P&gt;&lt;P&gt;edf, displayname2&lt;/P&gt;&lt;P&gt;xyz,displayname3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;Load*&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Key1&lt;/P&gt;&lt;P&gt;abc123&lt;/P&gt;&lt;P&gt;edf&lt;/P&gt;&lt;P&gt;789xyz&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;mapping LOAD Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '&amp;lt;'&amp;amp;Key&amp;amp;'&amp;gt;'&amp;nbsp; as Key_Copy&lt;/P&gt;&lt;P&gt;resident table1;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;LOAD Key1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; textbetween(MapSubString('t1',Key1),'&amp;lt;','&amp;gt;') as Clean_Key1&lt;/P&gt;&lt;P&gt;resident table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (t2)&lt;/P&gt;&lt;P&gt;load Key as Clean_Key1, Value&lt;/P&gt;&lt;P&gt;resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table1, table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sergejs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 11:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607330#M683572</guid>
      <dc:creator>zekazak</dc:creator>
      <dc:date>2014-02-20T11:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping question. Linking two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607331#M683575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good solution &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sergejs (marks your answer as correct, so other people can find it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think the reason mine is slower is I works on a cartesian of table1 (N record) and table2 (M record), so N * M record&lt;/P&gt;&lt;P&gt;You works on table2, M record. &lt;/P&gt;&lt;P&gt;Congratulations again for your textbetween(mapsubstring...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 11:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-question-Linking-two-tables/m-p/607331#M683575</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-20T11:25:26Z</dc:date>
    </item>
  </channel>
</rss>

