<?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 Value for the max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605156#M223551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;Hi all, I have the following data set:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Name&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Vika 20.09.2010 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Vika 13.01.2009 0,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 01.01.2008 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 02.04.2009 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 06.02.2001 0,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Kat 12.09.2011 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Kat 11.08.2011 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;The results I want is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Name Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Vika 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Dan 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Kat 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: justify; color: #222222; font-family: arial;"&gt;In other words I want to get Value for the max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: justify; color: #222222; font-family: arial;"&gt;Help me, please.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 08:01:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-21T08:01:42Z</dc:date>
    <item>
      <title>Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605156#M223551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;Hi all, I have the following data set:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Name&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Vika 20.09.2010 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Vika 13.01.2009 0,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 01.01.2008 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 02.04.2009 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Dan 06.02.2001 0,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Kat 12.09.2011 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;Kat 11.08.2011 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;The results I want is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Name Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Vika 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Dan 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; text-align: justify; color: #222222; font-size: 10pt; font-family: arial;"&gt;Kat 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial; text-align: justify;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: justify; color: #222222; font-family: arial;"&gt;In other words I want to get Value for the max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: justify; color: #222222; font-family: arial;"&gt;Help me, please.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 08:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605156#M223551</guid>
      <dc:creator />
      <dc:date>2014-03-21T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605157#M223552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 08:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605157#M223552</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-21T08:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605158#M223553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue(Value,-Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 08:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605158#M223553</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-21T08:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605159#M223554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done in two ways in script level and in frontend &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//**********************IN SCRIPT LEVEL&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;firstsortedvalue(Date,-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; as&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; Date,&lt;/P&gt;&lt;P&gt;firstsortedvalue(Value,-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; as&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; Value&lt;/P&gt;&lt;P&gt;group by Name;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;XXX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; In the above method use expression as sum(Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//********************************IN FRONT END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(firstsortedvalue(Value,-Date),Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 08:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605159#M223554</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-03-21T08:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605160#M223555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can Try This:&lt;/P&gt;&lt;P&gt;Take a staraight Table and add Name, Date as Dimensions.&lt;/P&gt;&lt;P&gt;Add an expression = Rank(Date), and Label it as RankDate Hide this expression by checking the "hide column" from presentation tab.&lt;/P&gt;&lt;P&gt;Add another expression was If(RankDate=1,Value,0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to presentation tab and check the checkbox "Supress zero Values".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. It works in my case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605160#M223555</guid>
      <dc:creator />
      <dc:date>2014-03-21T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Value for the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605161#M223556</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;Use this expression in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"=FirstSortedValue(Value,Date#(Date,'DD.MM.YYYY'),2)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-the-max-date/m-p/605161#M223556</guid>
      <dc:creator>qv_jagan</dc:creator>
      <dc:date>2014-03-21T09:49:39Z</dc:date>
    </item>
  </channel>
</rss>

