<?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: search string with multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713345#M256771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&amp;nbsp; This was helpful.&amp;nbsp; Do you have any thoughts as to how this could be done if the user were to enter in a search string where THEYget to determine if it is an "AND" search or an "OR" search?&amp;nbsp; For example, the user wants to search for "Cigarettes AND ashes" as opposed to "Cigarettes OR ashes". How could you get that entered into Set Analysis.&amp;nbsp; FYI, I am trying to use Set Analysis so that my charts and tables will update by the search term(s) as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 16:30:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-22T16:30:17Z</dc:date>
    <item>
      <title>search string with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713343#M256769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have a field where each value is a large amount of free form text.&amp;nbsp; I am using a variable in Set Analysis to search for certain key words and count how many of these field values contain any of these words.&amp;nbsp; I also want to allow the end user to enter in (via an input box) the terms for which they want to search.&amp;nbsp; They could possibly enter only one term or they could enter twenty.&amp;nbsp; How do you assign those field values to the variable such that the Set Analysis can do an 'OR' search on them (regardless of how they are delimited)?&amp;nbsp; For example, a User enters in 'cigarette match ashes' in the search field.&amp;nbsp; How do I create the variable "vTermMatch' such that when the Set Analysis, which is set up as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;[FreeFormText] = {"*$(=vTermMatch)*"}&amp;gt;} [CountTerm]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ends up being equivalent to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT( {$&amp;lt;[FreeFormText] = {'*cigarette*', '*match*', '*ashes*'}&amp;gt;} [CountTerm])&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 16:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713343#M256769</guid>
      <dc:creator />
      <dc:date>2014-09-04T16:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: search string with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713344#M256770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps with another helper variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSM = '{$&amp;lt;[FreeFormText] = {' &amp;amp; chr(39) &amp;amp; '*' &amp;amp; replace( '$(vTermMatch)',' ', '*' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39)&amp;nbsp; &amp;amp; '*' ) &amp;amp; '*'&amp;nbsp; &amp;amp;&amp;nbsp; Chr(39) &amp;amp; '}&amp;gt;}'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT( $(vSM) [CountTerm])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 07:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713344#M256770</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-05T07:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: search string with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713345#M256771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&amp;nbsp; This was helpful.&amp;nbsp; Do you have any thoughts as to how this could be done if the user were to enter in a search string where THEYget to determine if it is an "AND" search or an "OR" search?&amp;nbsp; For example, the user wants to search for "Cigarettes AND ashes" as opposed to "Cigarettes OR ashes". How could you get that entered into Set Analysis.&amp;nbsp; FYI, I am trying to use Set Analysis so that my charts and tables will update by the search term(s) as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713345#M256771</guid>
      <dc:creator />
      <dc:date>2014-09-22T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: search string with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713346#M256772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to tinker together something in Qlikview using if-statements and the substringcount function. But that can get ugly quickly. Perhaps you should use something like lucene+solr (lucene.apache.org/solr/) to index and search your texts if you want to do this kind of text analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-string-with-multiple-values/m-p/713346#M256772</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-23T09:54:26Z</dc:date>
    </item>
  </channel>
</rss>

