<?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,PuregChar or Subfield in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749207#M660314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to remove the non-numerics from the right side, correct? I think Manish was on the right track but I would code it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(Field,1) &amp;amp; KeepChar(mid(Field,2),'0123456789')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 16:25:14 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-03-05T16:25:14Z</dc:date>
    <item>
      <title>Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749201#M660308</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 have some Data as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X123&lt;/P&gt;&lt;P&gt;A09X&lt;/P&gt;&lt;P&gt;K85X&lt;/P&gt;&lt;P&gt;A12 D&lt;/P&gt;&lt;P&gt;B56 A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to tidy the data to resemble &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X123&lt;/P&gt;&lt;P&gt;A09&lt;/P&gt;&lt;P&gt;K85&lt;/P&gt;&lt;P&gt;A12&lt;/P&gt;&lt;P&gt;B56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using PurgChar it removes all The X,D &amp;amp; A's which is not my desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a successful way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749201#M660308</guid>
      <dc:creator />
      <dc:date>2015-03-05T12:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749202#M660309</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;It depends on the rule you are applying.&lt;/P&gt;&lt;P&gt;If you have a concrete small number of conversions, i would do by if statement.&lt;/P&gt;&lt;P&gt;If you are able to think in a concrete rule, then let's see...&lt;/P&gt;&lt;P&gt;Otherwise you can load a conversion table with input and output fields, and join it after load your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749202#M660309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749203#M660310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Left(Field,1) &amp;amp; PurgeChar(Trim(SubField(Field,' ',1)),'ABCDEFGHIJKLMNOPQRSTUVWXYZ') as NewField &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749203#M660310</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-05T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749204#M660311</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;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, If(IsNum(Right(Field, 1)), Field, Trim(Mid(Field, 1, Len(Field)-1))) as Result Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;X123&lt;/P&gt;&lt;P&gt;A09X&lt;/P&gt;&lt;P&gt;K85X&lt;/P&gt;&lt;P&gt;A12 D&lt;/P&gt;&lt;P&gt;B56 A&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749204#M660311</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-03-05T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749205#M660312</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;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; TempData&lt;BR /&gt; X123&lt;BR /&gt; A09X&lt;BR /&gt; K85X&lt;BR /&gt; A12 D&lt;BR /&gt; B56 A&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;testTemp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1),'1','2','3','4','5','6','7','8','9','0'),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempData&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;new_data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Temp;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749205#M660312</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-05T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749206#M660313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ended up with a function within the extracting database to trim off the various characters before extraction. All you help was much appreciated.&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, 05 Mar 2015 14:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749206#M660313</guid>
      <dc:creator />
      <dc:date>2015-03-05T14:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trim,PuregChar or Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749207#M660314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to remove the non-numerics from the right side, correct? I think Manish was on the right track but I would code it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(Field,1) &amp;amp; KeepChar(mid(Field,2),'0123456789')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-PuregChar-or-Subfield/m-p/749207#M660314</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-03-05T16:25:14Z</dc:date>
    </item>
  </channel>
</rss>

