<?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 Function Question. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244292#M854408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well he wanted first 2 letters and not numbers: The first 2 letters may be anything . AB OR SD are just examples I think.&amp;nbsp; His requirement is bit unclear - I guess he dont want anything if there is any numeric value .&lt;/P&gt;&lt;P&gt;I have taken care of it in my expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 12:58:10 GMT</pubDate>
    <dc:creator>jayanttibhe</dc:creator>
    <dc:date>2017-02-09T12:58:10Z</dc:date>
    <item>
      <title>Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244286#M854402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want show only the first two letters in my field. how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;Field:&lt;/P&gt;&lt;P&gt;ABAS&lt;/P&gt;&lt;P&gt;SDFW&lt;/P&gt;&lt;P&gt;1244S&lt;/P&gt;&lt;P&gt;SDFG&lt;/P&gt;&lt;P&gt;SD646&lt;/P&gt;&lt;P&gt;545SD&lt;/P&gt;&lt;P&gt;SDE12&lt;/P&gt;&lt;P&gt;124563&lt;/P&gt;&lt;P&gt;12448L&lt;/P&gt;&lt;P&gt;SDFGL&lt;/P&gt;&lt;P&gt;145877&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need only the first two letter's not numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting Result:&lt;/P&gt;&lt;P&gt;Field: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AB&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Need help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244286#M854402</guid>
      <dc:creator>MuraliPrasath</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244287#M854403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;left(FieldName, 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this to be shown in a listbox? I guess not. Where do you want this to happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244287#M854403</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-09T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244288#M854404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(Left([Field:],2), '1234567890')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244288#M854404</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2017-02-09T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244289#M854405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Field,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsText(Left(Field, 2)), &lt;SPAN style="font-size: 13.3333px;"&gt;Left(Field, 2)&lt;/SPAN&gt;) as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New field will only have two letters where they are text and not number. But it will include a value like 1A or B3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244289#M854405</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244290#M854406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, How about if values are like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Field:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABAS&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SDFW&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1244S&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SDFG&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SD646&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;545SD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SDE12&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;124563&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;12448L&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SDFGL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;145877&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;A123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Index(Field,'AB'),'AB', If(Index(Field,'SD'),'SD')) as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244290#M854406</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-09T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244291#M854407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like I said, my way would include A1.... but the issue with your code is that it won't include CD7264 for example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244291#M854407</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T12:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244292#M854408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well he wanted first 2 letters and not numbers: The first 2 letters may be anything . AB OR SD are just examples I think.&amp;nbsp; His requirement is bit unclear - I guess he dont want anything if there is any numeric value .&lt;/P&gt;&lt;P&gt;I have taken care of it in my expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 12:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244292#M854408</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2017-02-09T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244293#M854409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; It Worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244293#M854409</guid>
      <dc:creator>MuraliPrasath</dc:creator>
      <dc:date>2017-02-09T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244294#M854410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But your solution isn't correct either. You would end up with 6 times an SD value, while Murali only lists 5 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the expression will be a bit more complex. Something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF (Len(Left(PurgeChar(Field, '1234567890'), 2) = 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(PurgeChar(Field, '1234567890'), 2)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then we all hope for a QlikView expression optimiser, don't we? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244294#M854410</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-09T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244295#M854411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post correct requirements next time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244295#M854411</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-09T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244296#M854412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if that's the case then we would have done&amp;nbsp; : Result from your&amp;nbsp; Expression&amp;nbsp; would have achieved easily by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(PurgeChar([Field:], '1234567890'), 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need to calculate Length of the field and add IF condition&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244296#M854412</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2017-02-09T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244297#M854413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, I messed up as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original unposted solution reversed the calls, and that one would be the more correct one. That is, if requirements hadn't changed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;IF (Len(PurgeChar(Left(Field, 2), '1234567890')) = 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Field, 2)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;produces&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;IMG alt="Trim Function Question thread249308.jpg" class="jive-image image-1" height="247" src="/legacyfs/online/152614_Trim Function Question thread249308.jpg" style="height: 247px; width: 160.444px;" width="161" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244297#M854413</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-09T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Function Question.</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244298#M854414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if the Field is A1H293... Is the output needed A1 or AH or A? I guess we lack the clarity as to what was needed here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 13:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Function-Question/m-p/1244298#M854414</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T13:38:04Z</dc:date>
    </item>
  </channel>
</rss>

