<?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: Load script find value from one table as substring in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203797#M626829</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;maybe another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/140048_QlikCommunity_Thread_235397_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/140046_QlikCommunity_Thread_235397_Pic3.JPG" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/140047_QlikCommunity_Thread_235397_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140045_QlikCommunity_Thread_235397_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140044_QlikCommunity_Thread_235397_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic6.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/140049_QlikCommunity_Thread_235397_Pic6.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14758930819028375 jive_text_macro" jivemacro_uid="_14758930819028375"&gt;
&lt;P&gt;Keywords:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as %KeywordID, *&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keyword&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; apple&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; peach&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grape&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;mapKeywords:&lt;/P&gt;
&lt;P&gt;Mapping&lt;/P&gt;
&lt;P&gt;LOAD Keyword, '@start@'&amp;amp;%KeywordID&amp;amp;'@end@'&lt;/P&gt;
&lt;P&gt;Resident Keywords;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID, * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextField1, TextField2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 apples and a banana, some peaches&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bike, an orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; apple juice, something else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nothing, anything&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; something different, prunes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; many grapes, other fruits&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;CrossTable (TextField, TextFieldValue)&lt;/P&gt;
&lt;P&gt;LOAD * Resident Results;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabLink)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextFieldValue,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBetween(MapSubString('mapKeywords', TextFieldValue),'@start@','@end@',IterNo()) as %KeywordID&lt;/P&gt;
&lt;P&gt;Resident tabLink&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=SubStringCount(MapSubString('mapKeywords', TextFieldValue),'@start@');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Oct 2016 02:20:27 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-10-08T02:20:27Z</dc:date>
    <item>
      <title>Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203792#M626824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have an excel file of keywords, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keywords:&lt;/P&gt;&lt;P&gt;Load Keyword&lt;/P&gt;&lt;P&gt;from test.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a results file which contains numerous fields including 2 multiline text fields e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;Country,&lt;/P&gt;&lt;P&gt;TextField1,&lt;/P&gt;&lt;P&gt;TextField2&lt;/P&gt;&lt;P&gt;from results.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want to find out whether each keyword appears in either TextField1 or TextField2 in my results file, what's the best way to go about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. if my keywords table looks like this&lt;/P&gt;&lt;P&gt;'apple'&lt;/P&gt;&lt;P&gt;'orange'&lt;/P&gt;&lt;P&gt;'banana'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the TextField1 of the first row of my results file is '2 apples and a banana'&lt;/P&gt;&lt;P&gt;and the TextField1 of the second row is 'bike' and Text Field2 is&amp;nbsp; 'an orange'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to flag the first row as containing the keywords 'apple' and 'banana' and the 2nd row as containing the keyword 'orange'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do this in the load script as my results file contains so many rows and I need to provide stats on how many rows contain each of the keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 05:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203792#M626824</guid>
      <dc:creator />
      <dc:date>2016-10-06T05:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203793#M626825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Keywords:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Upper(Keyword) as Keyword,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; '/' &amp;amp; Lower(Keyword) &amp;amp; '\' as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Keyword&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;apple&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;orange&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;banana&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PurgeChar(Replace(KeepChar(MapSubString('Keywords', UPPER(TextField1)), 'abcdefghijklmnopqrstuvwxyz/\'), '\/', ', '), '/\') as Flag1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PurgeChar(Replace(KeepChar(MapSubString('Keywords', UPPER(TextField2)), 'abcdefghijklmnopqrstuvwxyz/\'), '\/', ', '), '/\') as Flag2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, TextField1, TextField2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 2 apples and a banana, xyz&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, bike, an orange&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203793#M626825</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T16:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203794#M626826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Keywords:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; Keyword,Keyword&amp;amp;' '&amp;amp;Peek(Keyword1) as Keyword1 Inline [&lt;BR /&gt; Keyword&lt;BR /&gt; apple&lt;BR /&gt; orange&lt;BR /&gt; banana&lt;BR /&gt; ];&lt;BR /&gt; &lt;STRONG&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vKeyword&lt;/EM&gt;&lt;/STRONG&gt; = Peek('Keyword1');&lt;BR /&gt; &lt;BR /&gt; Table:&lt;BR /&gt; Left Keep&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; *,KeepChar(TempKeyword,'$(vKeyword)') as Keyword;&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; ID,TextField1,TextField2,&lt;BR /&gt; SubField(TextField1&amp;amp;' '&amp;amp;TextField2,' ') as TempKeyword&lt;BR /&gt; Inline [&lt;BR /&gt; ID,TextField1,TextField2&lt;BR /&gt; 1,2 apples and a banana,cigar&lt;BR /&gt; 2,bike,an orange&lt;BR /&gt; 3,car and 3 apples and 1 banana and 2 oranges,&lt;BR /&gt; ];&lt;BR /&gt; &lt;BR /&gt; Join&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; ID,Concat(Keyword,',') as Flag&lt;BR /&gt; Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;Group by ID;&lt;BR /&gt; &lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Drop&lt;/STRONG&gt; Field Keyword1,TempKeyword&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139927_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203794#M626826</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-10-06T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203795#M626827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Sunny, Antonio, for the quick replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested both ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny, yours works but my real keywords could have spaces, your code is removing the space (i.e. if my keyword is Green Car its showing in the Flag1 field as greencar.&amp;nbsp; Also, if the keyword is found more than once, it is replicating.&amp;nbsp; Can I make Flag1 only give me unique values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;Unfortunately the data which could appear in textfields 1 &amp;amp; 2 could be very long, (this data is coming from a form and those fields are large free text fields) and I believe the code above is splitting these fields into its individual words, is that right?&amp;nbsp; I tried running this against my data and its running upwards of 1 mil rows!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank both again for your super quick responses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 23:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203795#M626827</guid>
      <dc:creator />
      <dc:date>2016-10-06T23:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203796#M626828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a slightly modified code which handles the space and also handles the issue of multiple keywords (but at cost of some performance) in Flag1 field only. Not sure if we need to handle the multiple keywords issue for Flag2 field also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Keywords:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Upper(Keyword) as Keyword,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; '/' &amp;amp; Replace(Lower(Keyword), ' ', '@') &amp;amp; '\' as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Keyword&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;apple&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Green Car&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;orange&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;banana&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TextField1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TextField2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Flag2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Concat(DISTINCT Flag1, ', ') as Flag1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By ID, TextField1, TextField2, Flag2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TextField1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TextField2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Flag1, ', ') as Flag1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Flag2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(Replace(KeepChar(MapSubString('Keywords', UPPER(TextField1)), 'abcdefghijklmnopqrstuvwxyz/\@'), '\/', ', '), '/\'), '@', ' ') as Flag1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(Replace(KeepChar(MapSubString('Keywords', UPPER(TextField2)), 'abcdefghijklmnopqrstuvwxyz/\@'), '\/', ', '), '/\'), '@', ' ') as Flag2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, TextField1, TextField2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 2 Green Car and a banana, xyz&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, bike, an orange&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, Green Car Green Car Green Car&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139942_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 07:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203796#M626828</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-07T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load script find value from one table as substring</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203797#M626829</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;maybe another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/140048_QlikCommunity_Thread_235397_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/140046_QlikCommunity_Thread_235397_Pic3.JPG" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/140047_QlikCommunity_Thread_235397_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140045_QlikCommunity_Thread_235397_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140044_QlikCommunity_Thread_235397_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235397_Pic6.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/140049_QlikCommunity_Thread_235397_Pic6.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14758930819028375 jive_text_macro" jivemacro_uid="_14758930819028375"&gt;
&lt;P&gt;Keywords:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as %KeywordID, *&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keyword&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; apple&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banana&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; peach&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grape&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;mapKeywords:&lt;/P&gt;
&lt;P&gt;Mapping&lt;/P&gt;
&lt;P&gt;LOAD Keyword, '@start@'&amp;amp;%KeywordID&amp;amp;'@end@'&lt;/P&gt;
&lt;P&gt;Resident Keywords;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID, * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextField1, TextField2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 apples and a banana, some peaches&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bike, an orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; apple juice, something else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nothing, anything&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; something different, prunes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; many grapes, other fruits&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;CrossTable (TextField, TextFieldValue)&lt;/P&gt;
&lt;P&gt;LOAD * Resident Results;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabLink)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextFieldValue,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBetween(MapSubString('mapKeywords', TextFieldValue),'@start@','@end@',IterNo()) as %KeywordID&lt;/P&gt;
&lt;P&gt;Resident tabLink&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=SubStringCount(MapSubString('mapKeywords', TextFieldValue),'@start@');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 02:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-find-value-from-one-table-as-substring/m-p/1203797#M626829</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-08T02:20:27Z</dc:date>
    </item>
  </channel>
</rss>

