<?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 load only last 2 words from a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216099#M69488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield could work although you would need to know how many words you have or setup a sount of the delimiter (space in this case), try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;subfield(projectname,' ',4)&amp;amp;" "&amp;amp;subfield(projectname,' ',5)&amp;amp; as ShortName,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;in your load script (assuming your project name field is 'projectname'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jul 2010 21:27:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-06T21:27:25Z</dc:date>
    <item>
      <title>load only last 2 words from a field</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216098#M69487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a demo app from client data and they're asking me to only show a portion of each project name in the app. For example, if a project name is shown as "Help the Homeless in DC", they want to only show "in DC" so as to not give away the source of the data. I can easily right-trim the data but it looks kind of messy so my preference is to grab only the last 2-3 words of the project name. Thoughts?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 20:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216098#M69487</guid>
      <dc:creator />
      <dc:date>2010-07-06T20:18:27Z</dc:date>
    </item>
    <item>
      <title>load only last 2 words from a field</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216099#M69488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield could work although you would need to know how many words you have or setup a sount of the delimiter (space in this case), try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;subfield(projectname,' ',4)&amp;amp;" "&amp;amp;subfield(projectname,' ',5)&amp;amp; as ShortName,&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;in your load script (assuming your project name field is 'projectname'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 21:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216099#M69488</guid>
      <dc:creator />
      <dc:date>2010-07-06T21:27:25Z</dc:date>
    </item>
    <item>
      <title>load only last 2 words from a field</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216100#M69489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use substringcount to figure out how many fields you have.&lt;/P&gt;&lt;P&gt;subfield(vMyField, ' ', substringcount(vMyField, ' '))&lt;BR /&gt;&amp;amp; ' ' &amp;amp;&lt;BR /&gt;subfield(vMyField, ' ', substringcount(vMyField, ' ')+1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 21:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216100#M69489</guid>
      <dc:creator>pbaenen</dc:creator>
      <dc:date>2010-07-06T21:36:14Z</dc:date>
    </item>
    <item>
      <title>load only last 2 words from a field</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216101#M69490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is a little test, maybe it will work for your needs&lt;/P&gt;&lt;P&gt;rgds &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 21:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216101#M69490</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-07-06T21:47:52Z</dc:date>
    </item>
    <item>
      <title>load only last 2 words from a field</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216102#M69491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use subfield with a negative index to extract words from the end of the full name.&lt;/P&gt;&lt;P&gt;subfield(project, ' ', -2) &amp;amp; ' ' &amp;amp; subfield(project, ' ', -1) as ShortName&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-last-2-words-from-a-field/m-p/216102#M69491</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-07-06T23:17:14Z</dc:date>
    </item>
  </channel>
</rss>

