<?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 Characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886771#M309148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this one line in the script or two? Not working for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 17:55:51 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2015-04-09T17:55:51Z</dc:date>
    <item>
      <title>Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886769#M309146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The records in that field vary in length but end in _FY15. (The field also starts with XXX_)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I trim the _FY15 keeping in mind that each ad name has a different number of characters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have removed the XXX_ by doing the following in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Order&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;RIGHT&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Order]&lt;/SPAN&gt;,&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Order]&lt;/SPAN&gt;) -4) &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;orderSHRTNME&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has allowed me to remove the XXX_, but now I want to remove the _FY15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886769#M309146</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-04-09T17:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886770#M309147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are couple of ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Replace(Order, '_FY15', '')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Mid(Order, 5, Len(yourFieldName) - 4) &lt;/STRONG&gt;//Assuming you still have XXX_ in your field I am starting from 5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886770#M309147</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-09T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886771#M309148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this one line in the script or two? Not working for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886771#M309148</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-04-09T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886772#M309149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;In the script like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Mid(Order, 5, Len(Order) - 4) as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;orderSHRTNME&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace(Replace(Order, 'XXX_', ''), '_FY15', '') as &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;orderSHRTNME&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886772#M309149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-09T17:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886773#M309150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Order,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Mid(Order, 5, (Len(Order) - 9)) as OrderShortName;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XXX_123_FY15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XXX_345_FY15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886773#M309150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-09T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886774#M309151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked beautifully. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886774#M309151</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-04-09T18:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886775#M309152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, sorry for the confusion earlier. Did not do a test, just posted it from my memory. the second input for Mid is not the end point, but number of characters from the starting point to include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Mid.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83227_Mid.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-Characters/m-p/886775#M309152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-09T18:10:58Z</dc:date>
    </item>
  </channel>
</rss>

