<?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 Search for an exact match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163757#M36714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having the following problem.&lt;/P&gt;&lt;P&gt;I need to search for a combination of letters (i.e. AB) in a string.&lt;/P&gt;&lt;P&gt;The following situations can occur in the string to be search in. Only the ones marked with a !! should be returned as correct&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ABC&lt;/LI&gt;&lt;LI&gt;C,AB,D,E !!&lt;/LI&gt;&lt;LI&gt;D,E,A&lt;/LI&gt;&lt;LI&gt;ABCDE, A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The logic should be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;search for a string, which is an exact match, knowing that the string to search in can be a single word, or a list of words separated by either a comma or a space (or a combination of both).&lt;/B&gt;&lt;/P&gt;&lt;P&gt;This is what we currently have... but this gives too many results&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;If((index(searchin, searchfor)=0), 'Yes', 'No')&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 12:16:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-16T12:16:49Z</dc:date>
    <item>
      <title>Search for an exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163757#M36714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having the following problem.&lt;/P&gt;&lt;P&gt;I need to search for a combination of letters (i.e. AB) in a string.&lt;/P&gt;&lt;P&gt;The following situations can occur in the string to be search in. Only the ones marked with a !! should be returned as correct&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ABC&lt;/LI&gt;&lt;LI&gt;C,AB,D,E !!&lt;/LI&gt;&lt;LI&gt;D,E,A&lt;/LI&gt;&lt;LI&gt;ABCDE, A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The logic should be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;search for a string, which is an exact match, knowing that the string to search in can be a single word, or a list of words separated by either a comma or a space (or a combination of both).&lt;/B&gt;&lt;/P&gt;&lt;P&gt;This is what we currently have... but this gives too many results&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;If((index(searchin, searchfor)=0), 'Yes', 'No')&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 12:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163757#M36714</guid>
      <dc:creator />
      <dc:date>2011-03-16T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Search for an exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163758#M36715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;=if(substringcount('String','a')&amp;lt;&amp;gt;'0' and substringcount('string','b')&amp;lt;&amp;gt;'0', 'Yes','No')&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;A'run'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 12:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163758#M36715</guid>
      <dc:creator />
      <dc:date>2011-03-16T12:36:54Z</dc:date>
    </item>
    <item>
      <title>Search for an exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163759#M36716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A'run'&lt;/P&gt;&lt;P&gt;So if I get it right, you would do this for every character...&lt;/P&gt;&lt;P&gt;Knowing that this needs to be used on every row of a table, it is impossible to predict the number of characters. Correct me if I'm wrong ofcourse &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 12:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-an-exact-match/m-p/163759#M36716</guid>
      <dc:creator />
      <dc:date>2011-03-16T12:50:29Z</dc:date>
    </item>
  </channel>
</rss>

