<?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: How to filter for numbers in string value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364455#M417771</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;another way to to generate a flag field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267218_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169853_QlikCommunity_Thread_267218_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14998092236993175 jive_text_macro" jivemacro_uid="_14998092236993175"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sign(FindOneOf(Answer,1234567890)) as ContainsNumbers&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "We have anual costs of more than 2000€"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "The anual costs don't exceed 500€"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Just some answer without any numbers"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Some plain text"&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you also looking for a solution to extract the actual numbers from the string into a separate field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 21:40:46 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2017-07-11T21:40:46Z</dc:date>
    <item>
      <title>How to filter for numbers in string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364453#M417769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello fellow Qlik enthusiasts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to filter for numbers in Qlik, even when they are included in string values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple table box that shows questions and answers of a questionnaire. For some questions, the participants of that questionnaire were able to respond with custom answers (no predesigned answers to select). In some of those answers are numbers e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"We have anual costs of more than 2000€"&lt;/P&gt;&lt;P&gt;"The anual costs don't exceed 500€"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to show all the answers that only include numbers somewhere in the text. The problem is, that the numbers don't have a fixed position since they are included in custom answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to filter for these answers anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much and best regards,&lt;/P&gt;&lt;P&gt;Franziska&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 14:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364453#M417769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-11T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter for numbers in string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364454#M417770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Franziska,&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(KeepChar(YourField,'0123456789')) &amp;gt; 0,YourField,' ')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;KeepChar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('We have anual costs of more than 6543€','0123456789')) &amp;gt; 0,1,0)&amp;nbsp; -&amp;gt; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;KeepChar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('We have anual costs of more than abcd€','0123456789')) &amp;gt; 0,1,0)&amp;nbsp; -&amp;gt; 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364454#M417770</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-11T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter for numbers in string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364455#M417771</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;another way to to generate a flag field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_267218_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169853_QlikCommunity_Thread_267218_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14998092236993175 jive_text_macro" jivemacro_uid="_14998092236993175"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sign(FindOneOf(Answer,1234567890)) as ContainsNumbers&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "We have anual costs of more than 2000€"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "The anual costs don't exceed 500€"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Just some answer without any numbers"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Some plain text"&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you also looking for a solution to extract the actual numbers from the string into a separate field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 21:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364455#M417771</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-11T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter for numbers in string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364456#M417772</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;glad you liked our solutions.&lt;/P&gt;&lt;P&gt;Please close your thread if your question is answered:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 21:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-for-numbers-in-string-value/m-p/1364456#M417772</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-07-12T21:54:44Z</dc:date>
    </item>
  </channel>
</rss>

