<?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 Removing character values and taking only numeric values from particular field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374135#M139249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one field as 'Plan_Id' which has got few initial values as characters and then numerical values as 001,002,003......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to bring only numeric values at UI level. Please suggest what function should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 07:35:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-30T07:35:15Z</dc:date>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374135#M139249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one field as 'Plan_Id' which has got few initial values as characters and then numerical values as 001,002,003......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to bring only numeric values at UI level. Please suggest what function should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 07:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374135#M139249</guid>
      <dc:creator />
      <dc:date>2012-05-30T07:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374136#M139250</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 think that you can use function KeepChar.&lt;/P&gt;&lt;P&gt;It works like this (copied from help file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;KeepChar(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;s1 , s2&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the string &lt;SPAN class="Italic"&gt;s1&lt;/SPAN&gt; less all characters not contained in string &lt;SPAN class="Italic"&gt;s2&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Code"&gt;keepchar ( 'a1b2c3','123' ) &lt;/SPAN&gt;&lt;/STRONG&gt;returns '&lt;SPAN class="Italic"&gt;123'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;In your case s2 parameter should be like &lt;STRONG&gt;'0123456789'&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P class="syntax"&gt;Yours, Harri&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 07:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374136#M139250</guid>
      <dc:creator />
      <dc:date>2012-05-30T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374137#M139251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Harri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My field has values in database like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non&lt;/P&gt;&lt;P&gt;Nop&lt;/P&gt;&lt;P&gt;05A&lt;/P&gt;&lt;P&gt;H1B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;001&lt;/P&gt;&lt;P&gt;002&lt;/P&gt;&lt;P&gt;003&lt;/P&gt;&lt;P&gt;004....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to remove first four and similar values which have characters and include only numeric values. Need to handle this in script but I am not sure which function will give me only numric values from one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374137#M139251</guid>
      <dc:creator />
      <dc:date>2012-05-30T08:15:32Z</dc:date>
    </item>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374138#M139252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Try Using PurgeChar Function .. &lt;/P&gt;&lt;P&gt;Hope it Helps ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374138#M139252</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2012-05-30T08:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374139#M139253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi Try Using PurgeChar Function .. &lt;/P&gt;&lt;P style="text-align: left;"&gt;Hope it Helps ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Regards,&lt;/P&gt;&lt;P style="text-align: left;"&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374139#M139253</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2012-05-30T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374140#M139254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table where not &lt;SPAN class="Code"&gt;findoneof( lower(Field),'abcdefghijklmnopqrstuvwxyz');&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table where len(purgechar(Field,&lt;SPAN class="Code"&gt;'1234567890'))=0;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374140#M139254</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-30T08:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374141#M139255</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;Using PurgeChar could still leave a number if it was embedded in a string (eg A2B will return 2), which may not be what you want. I suggest that you use the IsNum(expr) function which returns true (-1) if the expr is numeric, or false (0) if not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNum(expr), expr) As Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374141#M139255</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-30T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374142#M139256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table where len(purgechar(Field,&lt;SPAN class="Code"&gt;'1234567890'))=0;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;is working perfectly. Thanks a lot.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;Regards,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Code"&gt;Kirti&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 09:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374142#M139256</guid>
      <dc:creator />
      <dc:date>2012-05-30T09:01:08Z</dc:date>
    </item>
    <item>
      <title>Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374143#M139257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear, but I tend to complicate things from time to time and Jonathan pointed correctly to a much better solution using isnum():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table where isnum(Field);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 09:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374143#M139257</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-30T09:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Removing character values and taking only numeric values from particular field</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374144#M139258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Plan_Id=Plan_Id,Null(),replace(ltrim(replace(Plan_Id,'0',' ')),' ','0')) as Plan_Id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 16:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-character-values-and-taking-only-numeric-values-from/m-p/374144#M139258</guid>
      <dc:creator>joseduque</dc:creator>
      <dc:date>2016-12-23T16:30:51Z</dc:date>
    </item>
  </channel>
</rss>

