<?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 Text left from last space in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-left-from-last-space/m-p/265560#M99814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question. Is there a function to get a part of a field left from the last space in that field. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field "Name "&amp;nbsp; with the following values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van den Bergh&lt;/P&gt;&lt;P&gt;Jansen&lt;/P&gt;&lt;P&gt;van Achteren&lt;/P&gt;&lt;P&gt;van der Grijn&lt;/P&gt;&lt;P&gt;Pietersen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example i need the values : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van den&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van&lt;/P&gt;&lt;P&gt;van der&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible with QV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 08:56:17 GMT</pubDate>
    <dc:creator>francisvandergr</dc:creator>
    <dc:date>2011-10-21T08:56:17Z</dc:date>
    <item>
      <title>Text left from last space</title>
      <link>https://community.qlik.com/t5/QlikView/Text-left-from-last-space/m-p/265560#M99814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question. Is there a function to get a part of a field left from the last space in that field. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field "Name "&amp;nbsp; with the following values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van den Bergh&lt;/P&gt;&lt;P&gt;Jansen&lt;/P&gt;&lt;P&gt;van Achteren&lt;/P&gt;&lt;P&gt;van der Grijn&lt;/P&gt;&lt;P&gt;Pietersen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example i need the values : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van den&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van&lt;/P&gt;&lt;P&gt;van der&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible with QV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 08:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-left-from-last-space/m-p/265560#M99814</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2011-10-21T08:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text left from last space</title>
      <link>https://community.qlik.com/t5/QlikView/Text-left-from-last-space/m-p/265561#M99815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd use something like the following in the script&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;If(Index("Name ", ' ', -1), Left("Name ", Index("Name ", ' ', -1) -1), 'No Space') AS Req&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That reads if there is a space in the current value of "Name " then return all characters from the left until the last space, if there is no space, return "No Space".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 09:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-left-from-last-space/m-p/265561#M99815</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-21T09:14:12Z</dc:date>
    </item>
  </channel>
</rss>

