<?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 Compare Text-Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Text-Values/m-p/164766#M37349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I compare two text fields and output the matches as a rank.&lt;BR /&gt;If it is found a word from the Text2 in Text1, it has the rank 1 if two words are then displayed Rank 2, etc.&lt;BR /&gt;&lt;BR /&gt;I solve the above SubStringCount function.&lt;BR /&gt;How do I compare only words from the letters Text2 longer than 3?&lt;/P&gt;&lt;P&gt;input:&lt;BR /&gt;LOAD&lt;BR /&gt; nr,&lt;BR /&gt; text1&lt;BR /&gt; Resident art1;&lt;BR /&gt;LEFT Join LOAD&lt;BR /&gt; id,&lt;BR /&gt; text2&lt;BR /&gt; Resident art2;&lt;/P&gt;&lt;P&gt;output:&lt;BR /&gt;LOAD&lt;BR /&gt; nr,&lt;BR /&gt; id,&lt;BR /&gt; SubStringCount(text1,SubField(text2, ' ')) as rank&lt;BR /&gt; Resident input;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Text1: Lorem ipsum dolor sit amet, consetetur dolores sadipscing elitr.&lt;/P&gt;&lt;P&gt;Text2: At vero eos et accusam et justo duo dolores et ea rebum | &lt;B&gt;Rang 1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Text2: Stet clita kasd gubergren, no sea takimata sanctus elitr ipsum amet | &lt;B&gt;Rang 3&lt;/B&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Is my script it right or do you have another idea?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 16:02:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-16T16:02:57Z</dc:date>
    <item>
      <title>Compare Text-Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Text-Values/m-p/164766#M37349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I compare two text fields and output the matches as a rank.&lt;BR /&gt;If it is found a word from the Text2 in Text1, it has the rank 1 if two words are then displayed Rank 2, etc.&lt;BR /&gt;&lt;BR /&gt;I solve the above SubStringCount function.&lt;BR /&gt;How do I compare only words from the letters Text2 longer than 3?&lt;/P&gt;&lt;P&gt;input:&lt;BR /&gt;LOAD&lt;BR /&gt; nr,&lt;BR /&gt; text1&lt;BR /&gt; Resident art1;&lt;BR /&gt;LEFT Join LOAD&lt;BR /&gt; id,&lt;BR /&gt; text2&lt;BR /&gt; Resident art2;&lt;/P&gt;&lt;P&gt;output:&lt;BR /&gt;LOAD&lt;BR /&gt; nr,&lt;BR /&gt; id,&lt;BR /&gt; SubStringCount(text1,SubField(text2, ' ')) as rank&lt;BR /&gt; Resident input;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Text1: Lorem ipsum dolor sit amet, consetetur dolores sadipscing elitr.&lt;/P&gt;&lt;P&gt;Text2: At vero eos et accusam et justo duo dolores et ea rebum | &lt;B&gt;Rang 1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Text2: Stet clita kasd gubergren, no sea takimata sanctus elitr ipsum amet | &lt;B&gt;Rang 3&lt;/B&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Is my script it right or do you have another idea?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 16:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Text-Values/m-p/164766#M37349</guid>
      <dc:creator />
      <dc:date>2011-03-16T16:02:57Z</dc:date>
    </item>
    <item>
      <title>Compare Text-Values</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Text-Values/m-p/164767#M37350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you would get output as 0,0,0,0,0,0,0,0,1,0,0,0 for rank for first string and those many separate records as well, because the subfield function generates one record for each substring that can be taken from a larger string with the delimiter.&lt;/P&gt;&lt;P&gt;Right now what i can suggest yor is : use a count function for another LOAD(after your previous Load) like:&lt;/P&gt;&lt;P&gt;LOAD id, Count(if(rank=1,rank)) as RANK&lt;/P&gt;&lt;P&gt;Resident ....... Group By id; // hope id is your Text ID&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 17:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Text-Values/m-p/164767#M37350</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-03-16T17:10:32Z</dc:date>
    </item>
  </channel>
</rss>

