<?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: Test if a string contain any numbers in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969070#M331998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for both of you, Sunny T and M Woolf, both of the solutions you gave me worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Louw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 14:43:54 GMT</pubDate>
    <dc:creator>louwriet</dc:creator>
    <dc:date>2015-10-13T14:43:54Z</dc:date>
    <item>
      <title>Test if a string contain any numbers in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969067#M331995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to test if a string in a field contain any numbers , if yes then group it in 'OTHER' else if the string in field contain no numbers then the field value stay the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are no fix order for the number to appear in the string - so i cannot test spesific positions. String can look like 'HARBOUR'&amp;nbsp; then it will remain 'HARBOUR' and in the case of 'HARBOUR77' it must change to 'OTHER'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end my field in the records will look like this&lt;/P&gt;&lt;P&gt;GroupName&lt;/P&gt;&lt;P&gt;=========&lt;/P&gt;&lt;P&gt;HARBOUR&lt;/P&gt;&lt;P&gt;PORT&lt;/P&gt;&lt;P&gt;OTHER&lt;/P&gt;&lt;P&gt;LOADDECK&lt;/P&gt;&lt;P&gt;OTHER&lt;/P&gt;&lt;P&gt;ect.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it would be something like&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(field1 = num(whatever) , 'OTHER', field1)&amp;nbsp; as Groupname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Louw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969067#M331995</guid>
      <dc:creator>louwriet</dc:creator>
      <dc:date>2015-10-13T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Test if a string contain any numbers in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969068#M331996</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;If(Len(Trim(KeepChar(Field1, '0123456789'))) &amp;gt; 0, 'OTHER', Field1) as GroupName &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969068#M331996</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-13T13:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Test if a string contain any numbers in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969069#M331997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(YourField = purgechar(YourField,'0123456789'),'There are no numbers','There is at least one number')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969069#M331997</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-10-13T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Test if a string contain any numbers in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969070#M331998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for both of you, Sunny T and M Woolf, both of the solutions you gave me worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Louw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969070#M331998</guid>
      <dc:creator>louwriet</dc:creator>
      <dc:date>2015-10-13T14:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Test if a string contain any numbers in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969071#M331999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Totally help me weed out my list of results!!! Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 21:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-a-string-contain-any-numbers-in-load-script/m-p/969071#M331999</guid>
      <dc:creator>Daniel-PNW</dc:creator>
      <dc:date>2018-02-28T21:57:05Z</dc:date>
    </item>
  </channel>
</rss>

