<?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: Linking two tables with variable length key? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391029#M1154901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the responses.&amp;nbsp; Rob that looks like it will work for me.&amp;nbsp; I appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 13:42:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-28T13:42:13Z</dc:date>
    <item>
      <title>Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391023#M1154895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables, one has a full Identification number and the second has a partial number - the partial could be length of 2, 3, 4, etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically - I want to compare if Left(Indentification_Num,len(Partial_Num)) = Partial_Num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First:&lt;/P&gt;&lt;P&gt;Indentification_num&lt;/P&gt;&lt;P&gt;other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;P&gt;Partial_num&lt;/P&gt;&lt;P&gt;other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this in the load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391023#M1154895</guid>
      <dc:creator />
      <dc:date>2013-02-27T21:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391024#M1154896</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; Is there any field common in both table?&lt;/P&gt;&lt;P&gt;if so, then join with that. After that, compare identification number and partial number . Can you elaborate your table structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391024#M1154896</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-02-27T21:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391025#M1154897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No other common fields, that is the problem I am having.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391025#M1154897</guid>
      <dc:creator />
      <dc:date>2013-02-27T22:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391026#M1154898</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; Create the key for both the tables and join based on that key. Then compare it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391026#M1154898</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-02-27T22:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391027#M1154899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am not being really clear.&amp;nbsp; Table1 are all 10 digits.&amp;nbsp; Table 2 can be between 2-10 digits.&amp;nbsp; So the Bold in table one are the ones that would matchup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;Indentification_num&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;123&lt;/STRONG&gt;4567891&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;123&lt;/STRONG&gt;7346731&lt;/P&gt;&lt;P&gt;1453626723&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;123&lt;/STRONG&gt;1461234&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;23&lt;/STRONG&gt;45555555&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;23&lt;/STRONG&gt;66262662&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;23&lt;/STRONG&gt;88888888&lt;/P&gt;&lt;P&gt;3452626127&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3453&lt;/STRONG&gt;777777&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2&lt;/P&gt;&lt;P&gt;Partial_num&lt;/P&gt;&lt;P&gt;123&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;3453&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391027#M1154899</guid>
      <dc:creator />
      <dc:date>2013-02-27T22:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391028#M1154900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one possible solution. See attached example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR i = 0 to NoOfRows('Table2')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vPartial = peek('Partial_num', $(i), 'Table2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vLink = peek('%Link', $(i), 'Table2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table1_Matches:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Indentification_num&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,$(vLink) as %Link&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT Table1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Indentification_num LIKE '$(vPartial)*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 05:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391028#M1154900</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-28T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linking two tables with variable length key?</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391029#M1154901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the responses.&amp;nbsp; Rob that looks like it will work for me.&amp;nbsp; I appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 13:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-two-tables-with-variable-length-key/m-p/391029#M1154901</guid>
      <dc:creator />
      <dc:date>2013-02-28T13:42:13Z</dc:date>
    </item>
  </channel>
</rss>

