<?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: parse a numerical value from a string text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088692#M640995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I hope your strings aren't too flexible in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your expression into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;... &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if(wildmatch([Text Field], '*november*'),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(subfield([Text Field], ' ', 12))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as single_value...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Only on condition that your sentences do not contain any double or leading spaces.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 01:01:39 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-03-04T01:01:39Z</dc:date>
    <item>
      <title>parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088689#M640992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikkers, &lt;/P&gt;&lt;P&gt;I have a Field with String from which I need to parse a numerical value.&lt;/P&gt;&lt;P&gt;Only for month of November, I need the value parsed in a calcualted field in my script. &lt;/P&gt;&lt;P&gt;so in below, I need to parse 3, 300, 32,4,3,300,3,3. how to do that.&lt;/P&gt;&lt;P&gt;I am using :if(wildmatch(Text Field, '*november*')&amp;gt;0, mid([Text Field] ,index(&lt;SPAN style="font-size: 13.3333px;"&gt;[Text Field],'&lt;SPAN style="font-size: 13.3333px;"&gt;age group &amp;lt; &lt;/SPAN&gt;')+12,3,'Value')) as single_value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but its not working.&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;[Text Field]&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 681px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="21" width="681"&gt;month is november 70 % work done accounting age group &amp;lt; 3 fiscal year 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 300 fiscal year 2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 4 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 3 fiscal year 2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 300 fiscal year 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 3 fiscal year 2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 3 fiscal year 2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is december 70 % work done accounting age group &amp;lt; 41 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is december 70 % work done accounting age group &amp;lt; 3 fiscal year 2018&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 00:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088689#M640992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T00:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088690#M640993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;if(wildmatch([Text Field], '*november*'), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(TextBetween([Text Field], '&amp;lt; ', ' '))&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as single_value...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the first delimiter string contains a smaller-than character &lt;EM&gt;and&lt;/EM&gt; a space. The second one contains just a single space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 00:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088690#M640993</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-04T00:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088691#M640994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="21" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;month is november 70 % work done accounting age group &amp;gt; 300 fiscal year 2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="21" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;month is november 70 % work done accounting age group &amp;gt; 3 fiscal year 2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="21" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;month is november 70 % work done accounting age group &amp;gt; 3 fiscal year 2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter, Thank you. I forgot to mention , some of them also have &amp;gt; , as shown above. how to handle this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 00:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088691#M640994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T00:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088692#M640995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I hope your strings aren't too flexible in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your expression into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;... &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if(wildmatch([Text Field], '*november*'),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(subfield([Text Field], ' ', 12))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as single_value...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Only on condition that your sentences do not contain any double or leading spaces.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 01:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088692#M640995</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-04T01:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088693#M640996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following requirements on top of existing above reqs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; sometimes the records contain 2 diff text which I will need to use as 2 diff fields later; if it has both &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'accounting age group' and '&lt;SPAN style="font-size: 13.3333px;"&gt;Finance age Group' in the same row, i need the corresponding numerical values to b parsed out in two diff fields. so&amp;nbsp; for ea IDs, I need 2 new fields, accounting age and finance age.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;one more addition is '=' sign, which is ok, as long as ID2003 has finance age as 5 value and acc age as 3 value, it is valid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;how can I achieve this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 726px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="21" width="726"&gt;month is november 70 % work done accounting age group &amp;lt; 3 Finance age Group &amp;lt; 5 fiscal year 2021&lt;/TD&gt;&lt;TD height="21" width="726"&gt;ID2001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group &amp;lt; 8 Finance age Group &amp;gt; 10 fiscal year 2021&lt;/TD&gt;&lt;TD height="21"&gt;ID2002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;month is november 70 % work done accounting age group = 3&amp;nbsp; Finance age Group = 5 fiscal year 2021&lt;/TD&gt;&lt;TD height="21"&gt;ID2003&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 01:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088693#M640996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T01:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: parse a numerical value from a string text</title>
      <link>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088694#M640997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to do the value checking in a later step. First you need to lift all required values from each string and put them in separate fields. You can do that using the same technique as explained earlier on. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;... &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if (wildmatch([Text Field], '*november*'),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(subfield([Text Field], ' ', 12))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as AccountingAge,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;(wildmatch([Text Field], '*november*&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Finance age Group*&lt;/SPAN&gt;'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(subfield([Text Field], ' ', 13))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;(wildmatch([Text Field], '*november*&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Finance age Group*&lt;/SPAN&gt;'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#(subfield([Text Field], ' ', 18))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;) as FinanceAge ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on. Make sure that your strings do not contain multiple successive spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 01:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/parse-a-numerical-value-from-a-string-text/m-p/1088694#M640997</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-04T01:28:59Z</dc:date>
    </item>
  </channel>
</rss>

