<?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: Truncate string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318068#M117233</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;As i remember, Truncat function return the first characters of a string. So i think that the "left" function could do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help information for this function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;H4&gt;&lt;SPAN style="font-weight: bold;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;n&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt; )&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;Substring of the string &lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;. The result is a string consisting of the first &lt;SPAN style="font-style: italic;"&gt;n&lt;/SPAN&gt; characters of &lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;'abcdef'&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; &lt;/SPAN&gt;)&lt;/SPAN&gt; returns &lt;SPAN style="font-style: italic;"&gt;'abc'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; )&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; &lt;/SPAN&gt;where &lt;SPAN style="font-style: italic;"&gt;Date&lt;/SPAN&gt; = 1997-07-14 returns &lt;SPAN style="font-style: italic;"&gt;1997&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a more complicated example, see the &lt;SPAN style="font-weight: bold;"&gt;index&lt;/SPAN&gt; function below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maxime S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2011 13:20:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-29T13:20:20Z</dc:date>
    <item>
      <title>Truncate string</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318066#M117231</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;I'd like to use a truncation function on a string. I can't find any documentation about string functions here, can someone help me ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 12:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318066#M117231</guid>
      <dc:creator />
      <dc:date>2011-07-29T12:18:40Z</dc:date>
    </item>
    <item>
      <title>Truncate string</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318067#M117232</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;In the help you can find about the string functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In portuguese I don't find nothing, but in english (English.chm) have the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 12:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318067#M117232</guid>
      <dc:creator />
      <dc:date>2011-07-29T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate string</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318068#M117233</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;As i remember, Truncat function return the first characters of a string. So i think that the "left" function could do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help information for this function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;H4&gt;&lt;SPAN style="font-weight: bold;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;n&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt; )&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;Substring of the string &lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;. The result is a string consisting of the first &lt;SPAN style="font-style: italic;"&gt;n&lt;/SPAN&gt; characters of &lt;SPAN style="font-style: italic;"&gt;s&lt;/SPAN&gt;.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;'abcdef'&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; &lt;/SPAN&gt;)&lt;/SPAN&gt; returns &lt;SPAN style="font-style: italic;"&gt;'abc'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;left( &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; )&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-style: normal;"&gt; &lt;/SPAN&gt;where &lt;SPAN style="font-style: italic;"&gt;Date&lt;/SPAN&gt; = 1997-07-14 returns &lt;SPAN style="font-style: italic;"&gt;1997&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a more complicated example, see the &lt;SPAN style="font-weight: bold;"&gt;index&lt;/SPAN&gt; function below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maxime S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318068#M117233</guid>
      <dc:creator />
      <dc:date>2011-07-29T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate string</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318069#M117234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, left() is the one i picked up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318069#M117234</guid>
      <dc:creator />
      <dc:date>2011-07-29T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Truncate string</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318070#M117235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some examples:&lt;/P&gt;&lt;P&gt;string = 12345|67890&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(string, index(string, '|') -1) returns 12345&lt;/P&gt;&lt;P&gt;mid(string, index(string, '|') + 1) returns 67890 (if you leave the third argument out, it returns the rest of the string)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 14:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-string/m-p/318070#M117235</guid>
      <dc:creator />
      <dc:date>2011-07-29T14:21:18Z</dc:date>
    </item>
  </channel>
</rss>

