<?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: MaxString()  function has an issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426503#M814881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is the field always going to have a number after the point. If so you can try subfield(ID,'.',2) as ID_Order and use this the get the max number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Sep 2017 20:26:43 GMT</pubDate>
    <dc:creator>kamielrajaram</dc:creator>
    <dc:date>2017-09-15T20:26:43Z</dc:date>
    <item>
      <title>MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426502#M814880</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 am trying to achieve the max of the Program using Maxstring(). It works for most of the projects. but for this scenario it gives an incorrect output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Output is&amp;nbsp; B2700.18&lt;/P&gt;&lt;P&gt;But the output showing in the QV chart is B2700.8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Max.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176797_Max.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can fix this issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426502#M814880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426503#M814881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is the field always going to have a number after the point. If so you can try subfield(ID,'.',2) as ID_Order and use this the get the max number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426503#M814881</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2017-09-15T20:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426504#M814882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel has the same behaviour &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, because alphabetically 14,17,18 comes before 2&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="176813" alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176813_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;maybe you can prepare your data appending a '0' before numbers with only one char&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 21:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426504#M814882</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-15T21:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426505#M814883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using KeepChar(ID,'0123456789.') could sort in a way you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 21:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426505#M814883</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-15T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426506#M814884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel, &lt;/P&gt;&lt;P&gt;The subfield works good if we are having a number after the decimal. i.e B2700.2, B2700.3&lt;/P&gt;&lt;P&gt;but I also have the data which has the value it self i.e B2700.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me on how this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 16:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426506#M814884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426507#M814885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While using this logic, &lt;/P&gt;&lt;P&gt;I would have an issue as I would also have numbers before the decimal as well,&lt;/P&gt;&lt;P&gt;Is there any other way to approach this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 16:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426507#M814885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426508#M814886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting on&amp;nbsp; &lt;STRONG&gt;subfield(ID, '.', 1) &amp;amp; num(subfield(ID, '.', 2) &lt;SPAN style="font-size: 13.3333px;"&gt;/ 1000&lt;/SPAN&gt;, '.0000')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add this as a column to your chart to test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 17:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426508#M814886</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2017-09-18T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426509#M814887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maxstring is correctly sorting alphabetically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work&amp;nbsp; (I'm unable to edit the previous reply)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;subfield(ID, '.', 1) &amp;amp; num(subfield(ID, '.', 2) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;/ 100&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;, '.00')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 17:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426509#M814887</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2017-09-18T17:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426510#M814888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This partially works but modifies the initial data from B2700.18 to B2700&lt;STRONG style="text-decoration: underline;"&gt;0&lt;/STRONG&gt;.18&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 17:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426510#M814888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426511#M814889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the desire result based on inbuilt sorting function'&lt;STRONG&gt;Sort&lt;/STRONG&gt;'i n QlikView ,You just&amp;nbsp; need&amp;nbsp; to transform&amp;nbsp; data as i.e &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;2700.18, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;2700.18 &lt;/STRONG&gt;and put it one variable then use it variable in &lt;STRONG&gt;Sort&lt;/STRONG&gt; section .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it will works...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 17:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426511#M814889</guid>
      <dc:creator>alis2063</dc:creator>
      <dc:date>2017-09-18T17:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426512#M814890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, on how that works. Can you explain with an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 18:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426512#M814890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T18:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426513#M814891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Would this help, by making the order value 0&lt;/P&gt;&lt;P&gt;if(isnull(SubField(ID,'.',2)),0,SubField(ID,'.',2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 19:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426513#M814891</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2017-09-18T19:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426514#M814892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I approached it so far in this way taking all your suggestions into consideration, I am still validating for couple of scenario's though:&lt;/P&gt;&lt;P&gt;SubField(if(Progrm = ID,ID &amp;amp; '.0',ID), '.', -1) as ID_Decimal in the script to identify the decimal value&lt;/P&gt;&lt;P&gt;and in the chart expression,&lt;/P&gt;&lt;P&gt;I broke the Id into 3 pieces to resolve and identify the Max of the ID&lt;/P&gt;&lt;P&gt;MaxString(subfield(ID, '.', 1)) &amp;amp;&amp;nbsp; if(ID_Decimal=0,' ','.') &amp;amp; MaxString( (subfield(ID, '.', 2)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 20:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426514#M814892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T20:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString()  function has an issue</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426515#M814893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression on the Sort tab of the chart properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the sort expression option and enter the subfield expression.&lt;/P&gt;&lt;P&gt;Now you display your data but the sort order is evaluated using the sort expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 20:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-function-has-an-issue/m-p/1426515#M814893</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2017-09-18T20:07:45Z</dc:date>
    </item>
  </channel>
</rss>

