<?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: searching for multiple values in a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335957#M1170469</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See the attached file ..Don't give the space between test,prod ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 17:15:31 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-07-05T17:15:31Z</dc:date>
    <item>
      <title>searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335954#M1170466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 10pt;"&gt;Please see attached example qvw file. If I click Test button with only one search word (for example Test), then the value is searched in the field MES correctly. However, when I want to search 2 values (for example, Test, Prod), then the search fails completely. In the attached example, search value is stored in a variable. The test button uses the action of Select in field (MES) with the&amp;nbsp; search string as ='*'&amp;amp;'$(vTest)'&amp;amp;'*' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 10pt;"&gt;Thanks for your help in resolving this multiple search issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 10pt;"&gt;Deepak&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 11:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335954#M1170466</guid>
      <dc:creator />
      <dc:date>2012-07-05T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335955#M1170467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(*'&amp;amp; Replace('$(vTest)',',','*|*')&amp;amp;'*)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as search expression in your button action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 11:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335955#M1170467</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-05T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335956#M1170468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your solution but doesn't give what I was expecting. Please see attached file updated with your suggested expression. &lt;/P&gt;&lt;P&gt;When I search for Test, Prod I am expecting that all rows in the MES field to be selected now since 'Prod' is also in the last row (which is not selected).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 17:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335956#M1170468</guid>
      <dc:creator />
      <dc:date>2012-07-05T17:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335957#M1170469</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See the attached file ..Don't give the space between test,prod ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 17:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335957#M1170469</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-05T17:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335958#M1170470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can can remove one space after the comma automatically by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;='(*'&amp;amp; Replace(Replace('$(vTest)',', ',','),',','*|*')&amp;amp;'*)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as search expression. Or maybe there is a better approach, but I can't look into that anymore today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 17:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335958#M1170470</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-05T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335959#M1170471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayil,Thanks for your suggestion to your remove the space and to swuehl to fix the space after the comma separator. I see the selection work perfectly now for multiple values as in your attachment Test.qvw. However, if the search word itself has space, the button action doesn't select the rows in MES field. Do you know how to handle if the space is in the search string itself like 'This is Test'? Further, is there a way to count the number of selected rows based on the search and display in a table? I am attaching the test file with the search string with a space when the button action doesn't work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks both for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 20:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335959#M1170471</guid>
      <dc:creator />
      <dc:date>2012-07-05T20:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335960#M1170472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the spaces seem to break the search string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use another one, this will look kind of ugly (just copy it to a text box to see the search string uncovered):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this as search string in your button action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;='=wildmatch(MES,'&amp;amp;chr(39)&amp;amp;'*'&amp;amp;Replace('$(vTest)',',','*'&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;'*')&amp;amp;'*'&amp;amp;chr(39)&amp;amp;')'&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 21:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335960#M1170472</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-05T21:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: searching for multiple values in a field</title>
      <link>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335961#M1170473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow...swuehl.&amp;nbsp; Thanks very much for your help. The code works perfectly. I will use this code for other fields as well to do similar search. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/searching-for-multiple-values-in-a-field/m-p/335961#M1170473</guid>
      <dc:creator />
      <dc:date>2012-07-06T15:12:09Z</dc:date>
    </item>
  </channel>
</rss>

