<?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: Find In Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363252#M492124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the help!!! I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 18:17:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-23T18:17:23Z</dc:date>
    <item>
      <title>Find In Field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363249#M492121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following values are entered into an input box (vShipmentID), which searches for the values in the field 'ShipmentID':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1234&lt;/P&gt;&lt;P&gt;1235&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two values are returned, but the third value is not found in the data. Is there a way I can make my conditional text box say 'The following ShipmentID(s) were not found: 200'? If the second two values were not found, the conditional text box would need to say 'The following ShipmentID(s) were not found: 1235, 200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out how to write the expression, but maybe smthg like this: if Subfield(vShipmentID,'&amp;nbsp; ',1) is found in ShipmentID, return Subfield(vShipmentID,'&amp;nbsp; ',1)... etc. until all values are accounted for. However, there may be hundreds of values, so I would prefer not to use a thousand if statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 15:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363249#M492121</guid>
      <dc:creator />
      <dc:date>2012-07-23T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find In Field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363250#M492122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebeccad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13430598004201609" jivemacro_uid="_13430598004201609"&gt;&lt;P&gt;=Concat(&lt;/P&gt;&lt;P&gt;if(Match(ShipmentID,SubField(vShipmentID,',',ValueLoop(1,SubStringCount(vShipmentID,',')+1)))&amp;gt;=1,SubField(vShipmentID,',',ValueLoop(1,SubStringCount(vShipmentID,',')+1)))&lt;/P&gt;&lt;P&gt;,',')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 16:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363250#M492122</guid>
      <dc:creator />
      <dc:date>2012-07-23T16:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find In Field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363251#M492123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that will return the found values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to stick to this approach and you want to get the 'not found' values, you can reuse code I posted here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/162706#162706" title="http://community.qlik.com/message/162706#162706"&gt;http://community.qlik.com/message/162706#162706&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. using these variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vShipmentID (will be set by the INPUT box, comma separated values, no spaces)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFound:&lt;/P&gt;&lt;P&gt;=Concat(&lt;/P&gt;&lt;P&gt;if(Match(ShipmentID,SubField(vShipmentID,',',ValueLoop(1,SubStringCount(vShipmentID,',')+1)))&amp;gt;=1,SubField(vShipmentID,',',ValueLoop(1,SubStringCount(vShipmentID,',')+1)))&lt;/P&gt;&lt;P&gt;,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vAnum:&lt;/P&gt;&lt;P&gt;=SubStringCount(vShipmentID,',')+1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vNotFound:&lt;/P&gt;&lt;P&gt;=concat( if(wildmatch(vFound,'*'&amp;amp;subfield(vShipmentID,',',ValueLoop(1,vAnum,1))&amp;amp;'*'),NULL(),subfield(vShipmentID,',',ValueLoop(1,vAnum,1)) ) ,',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 16:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363251#M492123</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-23T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find In Field</title>
      <link>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363252#M492124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the help!!! I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-In-Field/m-p/363252#M492124</guid>
      <dc:creator />
      <dc:date>2012-07-23T18:17:23Z</dc:date>
    </item>
  </channel>
</rss>

