<?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 last two characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315132#M1185420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange. Attached is a sample application that does what you want, trims 2 characters from the right.&lt;/P&gt;&lt;P&gt;Press Ctrl + E inside the app to see the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2011 21:33:55 GMT</pubDate>
    <dc:creator>Alexander_Thor</dc:creator>
    <dc:date>2011-11-11T21:33:55Z</dc:date>
    <item>
      <title>Trim last two characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315129#M1185417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to trim the last 2 characters (could be text or number) from a field with a variable number of total characters.&amp;nbsp; Could be staring with 200000WS and want 200000 as the result, or 789ABC123456YT4X and want 789ABC12345YT as the result.&amp;nbsp; Will index work for this?&amp;nbsp; I thought&lt;SPAN style="text-decoration: underline;"&gt; Left ([Item_number], index([Item-number],'')-2)&lt;/SPAN&gt; might do it by jumping back 2 spaces from the the first balnk (the end of the string) but it returns the whole string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315129#M1185417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Trim last two characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315130#M1185418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try left(YourField, len(YourField)-2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 18:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315130#M1185418</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2011-11-11T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Trim last two characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315131#M1185419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No, it doesn't seem to work either.&amp;nbsp; I still get the entire field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 20:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315131#M1185419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T20:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trim last two characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315132#M1185420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange. Attached is a sample application that does what you want, trims 2 characters from the right.&lt;/P&gt;&lt;P&gt;Press Ctrl + E inside the app to see the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 21:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315132#M1185420</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2011-11-11T21:33:55Z</dc:date>
    </item>
    <item>
      <title>Trim last two characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315133#M1185421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a bunch Alexander, I got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 21:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-last-two-characters/m-p/315133#M1185421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T21:46:00Z</dc:date>
    </item>
  </channel>
</rss>

