<?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 summary of string field full words in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243676#M93008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Garteh, you could also try the following, that finds the next space of the truncated string and completes the last word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(vstr,12)&amp;nbsp; &amp;amp; subfield(subfield(vstr,left(vstr,12),-1),' ',1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 15:17:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-02T15:17:49Z</dc:date>
    <item>
      <title>summary of string field full words</title>
      <link>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243674#M93006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text field with words and sentences in (i.e. a full commentary field).&amp;nbsp; I want to create another field that has a summary of said field with a limit of words or length but remaining as full words.&amp;nbsp; If I use the left() function obviously it counts characters so all of my summaries end with broken words.&amp;nbsp; Can anyone think of a simple solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'The quick brown fox jumped over the lazy dog'&amp;nbsp; let's say I want to restrict this field to a maximum of 12 characters but only include full words.&amp;nbsp; So I'm happy if it is less than 12 characters as long as it has full words up to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243674#M93006</guid>
      <dc:creator />
      <dc:date>2011-08-02T15:02:49Z</dc:date>
    </item>
    <item>
      <title>summary of string field full words</title>
      <link>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243675#M93007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could keep the first 12 characters, find the last space and then keep the text up to that space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(var1,index(left(var1,12),' ',-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243675#M93007</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-08-02T15:11:56Z</dc:date>
    </item>
    <item>
      <title>summary of string field full words</title>
      <link>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243676#M93008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Garteh, you could also try the following, that finds the next space of the truncated string and completes the last word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(vstr,12)&amp;nbsp; &amp;amp; subfield(subfield(vstr,left(vstr,12),-1),' ',1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243676#M93008</guid>
      <dc:creator />
      <dc:date>2011-08-02T15:17:49Z</dc:date>
    </item>
    <item>
      <title>summary of string field full words</title>
      <link>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243677#M93009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both very helpful answers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summary-of-string-field-full-words/m-p/243677#M93009</guid>
      <dc:creator />
      <dc:date>2011-08-02T15:54:04Z</dc:date>
    </item>
  </channel>
</rss>

