<?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: Filter rows based on words in description in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250168#M95009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like this. If the excel file contains a lot of records there are likely better ways to do it&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"&gt;&lt;P&gt;seach_terms:&lt;/P&gt;&lt;P&gt;load Seach_term from xxx.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let condition_string='index(description,'&amp;amp; peek('Seach_term',0,'seach_terms')&amp;amp;')&amp;gt;0';&lt;/P&gt;&lt;P&gt;for counter=1 to noofrows('description')-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let condition_string='$(condition_string)'&amp;amp;' or index(description,'&amp;amp; peek('Seach_term',$(counter),'seach_terms') &amp;amp;')&amp;gt;0'&lt;/P&gt;&lt;P&gt;next counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;load xxx,description from xxx where $(condition_string);&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 11:32:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-16T11:32:21Z</dc:date>
    <item>
      <title>Filter rows based on words in description</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250164#M95005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading an Excel document with some "search terms". I'm also loading a table with a description column. I want to only load the rows of this table where the description contains one of the search terms loaded from the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't really use exists() here because the fields aren't identical (the search terms from the Excel file are moslty merely one word while the description is often a sentence).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250164#M95005</guid>
      <dc:creator />
      <dc:date>2011-09-09T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Filter rows based on words in description</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250165#M95006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Have you tried using wild card search? Can you provide the sample files, I can try this one for you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In QV you can use :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;* Zero or more characters.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;? Any single character.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 14:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250165#M95006</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-09-09T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows based on words in description</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250166#M95007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if u don't have too much record u can try this.&lt;/P&gt;&lt;P&gt;It's the first stupid idea i had.&lt;/P&gt;&lt;P&gt;After last load in the script, u can delete my new dimension to reserve memmory space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 15:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250166#M95007</guid>
      <dc:creator />
      <dc:date>2011-09-09T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows based on words in description</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250167#M95008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea, but I have way too many records. I solved it by making the selection outside of QlikView, then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 10:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250167#M95008</guid>
      <dc:creator />
      <dc:date>2011-09-16T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows based on words in description</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250168#M95009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like this. If the excel file contains a lot of records there are likely better ways to do it&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"&gt;&lt;P&gt;seach_terms:&lt;/P&gt;&lt;P&gt;load Seach_term from xxx.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let condition_string='index(description,'&amp;amp; peek('Seach_term',0,'seach_terms')&amp;amp;')&amp;gt;0';&lt;/P&gt;&lt;P&gt;for counter=1 to noofrows('description')-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let condition_string='$(condition_string)'&amp;amp;' or index(description,'&amp;amp; peek('Seach_term',$(counter),'seach_terms') &amp;amp;')&amp;gt;0'&lt;/P&gt;&lt;P&gt;next counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;load xxx,description from xxx where $(condition_string);&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 11:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-rows-based-on-words-in-description/m-p/250168#M95009</guid>
      <dc:creator />
      <dc:date>2011-09-16T11:32:21Z</dc:date>
    </item>
  </channel>
</rss>

