<?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: Wildmatch cell content between two tables in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628971#M1093300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works perfectly! Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2014 14:27:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-11T14:27:01Z</dc:date>
    <item>
      <title>Wildmatch cell content between two tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628969#M1093298</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;let's say I have these two simplified tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&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;&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; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="200" style="border: 1px solid rgb(0, 0, 0); width: 127px; height: 174px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Request&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;sushi dortmund&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;pizza münchen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;burger hannover&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;darmstadt chinese&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;thai köln&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;münchen kebap&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="225" style="border: 1px solid rgb(0, 0, 0); width: 130px; height: 220px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;City&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;münchen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;berlin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;hamburg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;darmstadt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bremen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;augsburg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;dortmund&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a table object as a result that shows an extra column that shows for each entry in "Request" if one of the entries in "City" &lt;STRONG&gt;wildmatches&lt;/STRONG&gt;. The result should look similar to this (it is kind of a wildmatch VLOOKUP):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="276" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 215px; height: 277px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Request&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;CityMatch&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;sushi dortmund&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dortmund&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;pizza münchen&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;münchen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;burger hannover&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;darmstadt chinese&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;darmstadt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;thai köln&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;münchen kebap&lt;/TD&gt;&lt;TD&gt;münchen&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My solution was just to load both tables and create a chart table object with the dimensions&lt;/P&gt;&lt;P&gt;1. Request&lt;/P&gt;&lt;P&gt;2. =Pick(WildMatch(Request,'*'&amp;amp;city&amp;amp;'*'),city)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This works for the small example tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is now that my real data is much bigger. I have around 80.000 rows in "Request" and 1.000 rows in "City". Using the WildMatch-Formula directly in the Table object leads to &lt;STRONG&gt;out of memory&lt;/STRONG&gt; errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of implementing this wildmatch into the script so that I get the CityMatch column already from the script and it does not have to calculate it in the object? Or is there a much better solution for this? I do not really know where to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any hints&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 21:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628969#M1093298</guid>
      <dc:creator />
      <dc:date>2014-05-10T21:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch cell content between two tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628970#M1093299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1399758615494365" jivemacro_uid="_1399758615494365"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may join tables during relaoad and the check condition, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;req:&lt;/P&gt;&lt;P&gt;load *, RowNo() as Req_ID;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sushi dortmund&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pizza münchen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; burger hannover&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; darmstadt chinese&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thai köln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; münchen kebap&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;city:&lt;/P&gt;&lt;P&gt;load *, RowNo() as City_ID;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;City&lt;/P&gt;&lt;P&gt;münchen&lt;/P&gt;&lt;P&gt;berlin&lt;/P&gt;&lt;P&gt;hamburg&lt;/P&gt;&lt;P&gt;darmstadt&lt;/P&gt;&lt;P&gt;bremen&lt;/P&gt;&lt;P&gt;augsburg&lt;/P&gt;&lt;P&gt;dortmund&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;load City as City1, City_ID, 1 as tech Resident city;&lt;/P&gt;&lt;P&gt;join &lt;/P&gt;&lt;P&gt;load Request as Req1, Req_ID, 1 as tech Resident req;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load City_ID, Req_ID, if (SubStringCount(Req1,City1)&amp;gt;0,1) as matches Resident tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inter:&lt;/P&gt;&lt;P&gt;load City_ID, Req_ID Resident tab2 Where matches=1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables tab1, tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 21:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628970#M1093299</guid>
      <dc:creator />
      <dc:date>2014-05-10T21:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wildmatch cell content between two tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628971#M1093300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works perfectly! Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 14:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildmatch-cell-content-between-two-tables-in-script/m-p/628971#M1093300</guid>
      <dc:creator />
      <dc:date>2014-05-11T14:27:01Z</dc:date>
    </item>
  </channel>
</rss>

