<?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 Searching word in string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679021#M246288</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 2 files where in one file i have a string and in other file have keyword. if Keyword is exists in string then will get the country.&lt;/P&gt;&lt;P&gt;How can i compare 2 files?&lt;/P&gt;&lt;P&gt;PFA of sample files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 14:48:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-22T14:48:52Z</dc:date>
    <item>
      <title>Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679021#M246288</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 2 files where in one file i have a string and in other file have keyword. if Keyword is exists in string then will get the country.&lt;/P&gt;&lt;P&gt;How can i compare 2 files?&lt;/P&gt;&lt;P&gt;PFA of sample files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679021#M246288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-22T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679022#M246289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one way. This method would include all hints, not just the 'first' one.&amp;nbsp; How many records in each file ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69474_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load script:&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as JoinKey&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&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;/P&gt;&lt;P&gt;join (String)&lt;/P&gt;&lt;P&gt;LOAD Text,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as JoinKey&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;result:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; String,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;Resident String&lt;/P&gt;&lt;P&gt;&amp;nbsp; where SubStringCount(String,Text)&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop table String;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679022#M246289</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-22T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679023#M246290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution using Keepchar function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD ID, String FROM String.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;LOAD Text, Country FROM Mapping.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD * Resident Table1 Where KeepChar(String, Text)=Text;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679023#M246290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-22T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679024#M246291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 'String' file has many values, this logic is not working for me. Here we are using mapping file to get all the countries from string file. It has thousands of strings. Can you please tell me how can i do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 17:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679024#M246291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-22T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679025#M246292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/472666"&gt;Re: Mapping question. Linking two tables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679025#M246292</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-22T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Searching word in string</title>
      <link>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679026#M246293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cartesian products are bad &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;This problem begs for use of MapSubstring. It does not get used too often, so all the more reason &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text, '.'&amp;amp;country&amp;amp;';'&lt;/P&gt;&lt;P&gt;From &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Mapping.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid(splitString, Index(splitString,'.')+1) as Country&lt;/P&gt;&lt;P&gt;Where Index(splitString, '.');&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(mappedString, ';') as splitString&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSubstring('map', String) as mappedString&lt;/P&gt;&lt;P&gt;From String.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code assumes your strings do not contain dots and semicolons. Choose your own delimiter chars if this is not the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Searching-word-in-string/m-p/679026#M246293</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-10-22T18:23:51Z</dc:date>
    </item>
  </channel>
</rss>

