<?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 Latest Numerical Value (Expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153961#M376793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the thing to make sure is that the date is actually read as date by QlikView:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 08:24:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-23T08:24:39Z</dc:date>
    <item>
      <title>Maxstring Latest Numerical Value (Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153959#M376791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one maxstring the latest numerical value results based on a date, sounds confusing but basically i want to obtain the latest Rand Value based on the Lastest Date. Below is a list of dates and their values to help explain my issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&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; Rand Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Transactiontypeid&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;2016/08/23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2000&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; 6&lt;/P&gt;&lt;P&gt;2016/07/24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R3000&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; 6&lt;/P&gt;&lt;P&gt;2016/06/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R1500&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; 6&lt;/P&gt;&lt;P&gt;2016/05/24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R3600&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; 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when i use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Maxstring({&amp;lt;Transactiontypeid={6}&amp;gt;}Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the results returned is 2016/08/23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and when i do the same for the rand value &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Maxstring({&amp;lt;Transactiontypeid={6}&amp;gt;}Rand Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result returned is R3600&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; is incorrect cause the latest Rand Value (based on the latest date)&amp;nbsp; is R2000 and the maxstring expression has gone for the highest value instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way around this or another expression i could use or maybe even a fix i can apply to the backend (script)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 07:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153959#M376791</guid>
      <dc:creator />
      <dc:date>2016-08-23T07:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring Latest Numerical Value (Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153960#M376792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need to use FirstSortedValue() function here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Transactiontypeid={6}&lt;/SPAN&gt;&amp;gt;} [Rand Value], -Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153960#M376792</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T08:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring Latest Numerical Value (Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153961#M376793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the thing to make sure is that the date is actually read as date by QlikView:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153961#M376793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring Latest Numerical Value (Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153962#M376794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it worked with FirstSortedValue,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 09:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153962#M376794</guid>
      <dc:creator />
      <dc:date>2016-08-23T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring Latest Numerical Value (Expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153963#M376795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maxstring-Latest-Numerical-Value-Expression/m-p/1153963#M376795</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T10:26:33Z</dc:date>
    </item>
  </channel>
</rss>

