<?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: repetitive word from a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434927#M431172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am trying in load statement &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 13:28:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-28T13:28:19Z</dc:date>
    <item>
      <title>repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434924#M431169</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;&lt;/P&gt;&lt;P&gt;Could you please guide me how to find repetitive word from a string and i need to find how many times the word has repeated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;String&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Manager.&lt;/P&gt;&lt;P&gt;Managers&lt;/P&gt;&lt;P&gt;MANAGER&lt;/P&gt;&lt;P&gt;APPRECIATE&lt;/P&gt;&lt;P&gt;APPRECIATED&lt;/P&gt;&lt;P&gt;APPRECIATES&lt;/P&gt;&lt;P&gt;APPRECIATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to group the word which has similar words and i need to find how many times the word repeated .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My O/P should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT&lt;/P&gt;&lt;P&gt;MANAGER , 3&lt;/P&gt;&lt;P&gt;APPRECIATE, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434924#M431169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434925#M431170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is APPRECIATION a repetition of APPRECIATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see what you are looking for, but what determines the base words you are looking for and which other words needs to be taken into account?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434925#M431170</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-28T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434926#M431171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to do this in the load script or within a visualization? (probably easier in the load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434926#M431171</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-09-28T13:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434927#M431172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am trying in load statement &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434927#M431172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434928#M431173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, i am trying this for word cloud functionality to highlight the more repeated word from a string.&lt;/P&gt;&lt;P&gt;The base word can be&amp;nbsp; a&amp;nbsp; least level from a group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;String&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Manager.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Managers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MANAGER&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATED&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATES&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATION&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For Manager group it can be Manager &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Manager.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Managers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MANAGER&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;APPRECIATE&lt;/SPAN&gt; group it can be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;APPRECIATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATED&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATES&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;APPRECIATION&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This should be dynamic as the string has more words&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434928#M431173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T13:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434929#M431174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;MAPPING LOAD Stem, '@1@'&amp;amp;Word&amp;amp;'@2@' INLINE [&lt;/P&gt;&lt;P&gt;Stem, Word&lt;/P&gt;&lt;P&gt;MANAGE, MANAGER&lt;/P&gt;&lt;P&gt;APPRECIAT, APPRECIATE&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD *, Textbetween(MapSubString('MAP',Upper(String)),'@1@','@2@') as Word INLINE [&lt;/P&gt;&lt;P&gt;String&lt;/P&gt;&lt;P&gt;Manager.&lt;/P&gt;&lt;P&gt;Managers&lt;/P&gt;&lt;P&gt;MANAGER&lt;/P&gt;&lt;P&gt;APPRECIATE&lt;/P&gt;&lt;P&gt;APPRECIATED&lt;/P&gt;&lt;P&gt;APPRECIATES&lt;/P&gt;&lt;P&gt;APPRECIATION&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still, &lt;SPAN style="text-decoration: underline;"&gt;you&lt;/SPAN&gt; need to define the Stem / Word mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434929#M431174</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-28T13:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: repetitive word from a string</title>
      <link>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434930#M431175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make the stems dynamic (i.e., you don't want to define them before-hand), you could do some looping to determine for each word if it &lt;STRONG&gt;is a substring of another word&lt;/STRONG&gt; (use the Index function) and there are &lt;STRONG&gt;no cases&lt;/STRONG&gt; where the word is a substring of another word.&amp;nbsp; Also, use the Lower function first so you don't have to worry about case. So, "manage" would be a substring of "manager" and "managed", but never a 'superstring' of any other words. You'd therefore classify "manage" as one of your stems. Repeat for each word. This would be a two-level loop (quadratic), so it might be slow. Sorry, I don't have time to work out the syntax right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you wanted to have "appreciat" as the stem for both "appreciated" and "appreciating", this would be even more complex because "appreciat" is not a word in the corpus. You could do another loop in which you look at all possible substrings of each given word to see if they are in other words, but this would be very cumbersome and inefficient. But, since its in the load script, if you don't mind a long run time (if there are a lot of words), you could give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/repetitive-word-from-a-string/m-p/1434930#M431175</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-09-28T13:59:14Z</dc:date>
    </item>
  </channel>
</rss>

