<?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: trim all before last space? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774382#M274732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field that contains information like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 245px; height: 8px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border: 0px black; width: 86pt; height: 15pt; background-color: transparent;" width="115"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV style="width: auto;" title=""&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;AB Leichire Heah POS0953&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need the last part&amp;nbsp; (POS0953) to create a new field with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested by Gysbert works beautifuly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(B2,' ', -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 14:35:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-22T14:35:09Z</dc:date>
    <item>
      <title>trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774376#M274726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not a Qlikview developer, I've the formula working in excel but cant quite get it right in QV Not sure if QV has something similar to the "search" formula in excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RIGHT(B2,LEN(B2)-SEARCH(" ",B2,SEARCH(" ",B2,1)+1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance and happy christmas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 12:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774376#M274726</guid>
      <dc:creator />
      <dc:date>2014-12-22T12:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774377#M274727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try subfield(B2,' ', -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the equivalent of Excels Search() function is the Index() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 12:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774377#M274727</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-22T12:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774378#M274728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mid(B2,Index(B2,' ',2)+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 12:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774378#M274728</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-22T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774379#M274729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This answer replicates exactly my excel formula, however I realised my formula in excel wasn't working correctly for some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;Gysbert's&amp;nbsp; formula worked better for me.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks both!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 13:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774379#M274729</guid>
      <dc:creator />
      <dc:date>2014-12-22T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774380#M274730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post any example here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 13:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774380#M274730</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-22T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774381#M274731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hi Daniel,&lt;/P&gt;&lt;P&gt;if it is just trimming&amp;nbsp; last few spaces then you can use rtrim() function, this will remove spaces from right side of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774381#M274731</guid>
      <dc:creator>saurabh5</dc:creator>
      <dc:date>2014-12-22T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774382#M274732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field that contains information like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 245px; height: 8px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border: 0px black; width: 86pt; height: 15pt; background-color: transparent;" width="115"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV style="width: auto;" title=""&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;AB Leichire Heah POS0953&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need the last part&amp;nbsp; (POS0953) to create a new field with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggested by Gysbert works beautifuly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(B2,' ', -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774382#M274732</guid>
      <dc:creator />
      <dc:date>2014-12-22T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774383#M274733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please mark Gysbert's answer correct.&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;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774383#M274733</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-22T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: trim all before last space?</title>
      <link>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774384#M274734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Gysbert is right &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for pick last right value from &lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;AB Leichire Heah POS0953&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;you have to use&amp;nbsp; subfield(B2,' ', -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary if you want last second then use subfield(B2,' ', -2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similary if you want last third then use subfield(B2,' ', -3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-all-before-last-space/m-p/774384#M274734</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-22T14:52:13Z</dc:date>
    </item>
  </channel>
</rss>

