<?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: Taking Max value from and alphanumeric field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238597#M621539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using Left function you can use Mid function to achieve your requirement. Below is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Rangemax(mid(FieldName,2,1),mid(Fieldname,3,1),mid(Fieldname,4,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 06:26:04 GMT</pubDate>
    <dc:creator>bhargav_bhat</dc:creator>
    <dc:date>2017-03-20T06:26:04Z</dc:date>
    <item>
      <title>Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238595#M621537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an alphanumeric field where I need to take the first four characters and then to take the largest number value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field example&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Desired Output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;S876&lt;/SPAN&gt;987630987&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt; 8&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;A330&lt;/SPAN&gt;27889085F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&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;&lt;P&gt;I have tried to use &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,4) &lt;SPAN style="font-size: 10pt;"&gt;and then tried a number of things but to no avail.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be great&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 04:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238595#M621537</guid>
      <dc:creator />
      <dc:date>2017-03-20T04:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238596#M621538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;P&gt;If you take the string starting at position 2 till the end: Right(&amp;lt;field&amp;gt;, Len(&amp;lt;field&amp;gt;) - 1), you could order the result using a MaxString() function.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238596#M621538</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-20T06:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238597#M621539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using Left function you can use Mid function to achieve your requirement. Below is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Rangemax(mid(FieldName,2,1),mid(Fieldname,3,1),mid(Fieldname,4,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238597#M621539</guid>
      <dc:creator>bhargav_bhat</dc:creator>
      <dc:date>2017-03-20T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238598#M621540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhargav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;602016000088B returns 2 - Incorrect&lt;/P&gt;&lt;P&gt;Q320151843673 returns 3 - correct&lt;/P&gt;&lt;P&gt;4576000000000 returns 7 - correct&lt;/P&gt;&lt;P&gt;9876000000400 returns 8 - Incorrect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works for some values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238598#M621540</guid>
      <dc:creator />
      <dc:date>2017-03-20T06:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238599#M621541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeMax(&lt;/P&gt;&lt;P&gt;mid(KeepChar(left('FieldName ',4),0123456789),1,1),&lt;/P&gt;&lt;P&gt;mid(KeepChar(left('&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt; ',4),0123456789),2,1),&lt;/P&gt;&lt;P&gt;mid(KeepChar(left('&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt; ',4),0123456789),3,1),&lt;/P&gt;&lt;P&gt;mid(KeepChar(left('&lt;SPAN style="font-size: 13.3333px;"&gt;FieldName&lt;/SPAN&gt; ',4),0123456789),4,1),&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238599#M621541</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2017-03-20T06:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Taking Max value from and alphanumeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238600#M621542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up with this working solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangemax&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;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,1),&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;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2,1),&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;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,3,1), &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;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,4,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;Test&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks all for your replys&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 07:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-Max-value-from-and-alphanumeric-field/m-p/1238600#M621542</guid>
      <dc:creator />
      <dc:date>2017-03-20T07:10:36Z</dc:date>
    </item>
  </channel>
</rss>

