<?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: max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721022#M1068701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Rakesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;This is perfect scenario to use FirstSortedValue() function. I've made a video tutorial on this top. Please check the following link(s) on my blog. It's really powerful to use and very useful when you want to get max or min value based on a specific field. One more advantage - FirstSortedValue() supports SET Expression (SET Analysis).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A class="unlinked" style="font-size: 10pt; line-height: 1.5em;" title="http://qlikshare.com/392/"&gt;http://qlikshare.com/392/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A class="unlinked" title="http://qlikshare.com/398/"&gt;http://qlikshare.com/398/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 14:45:34 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2014-09-05T14:45:34Z</dc:date>
    <item>
      <title>max date</title>
      <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721019#M1068698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, I am new to qlikview. I have a scenario like this.Please let me know hoe to resolve? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;Policy No&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="76"&gt;Pol Eff Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="94"&gt;EvaluationDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/31/2011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$45,643 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3/31/2011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$45,644 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4/30/2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$45,645 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/1/2010&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5/30/2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$45,646 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1/31/2011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$55,645 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3/31/2011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$23 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4/30/2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$46 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5/31/2012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$47 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6/30/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$647 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7/31/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$648 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to pull the loss for each policy/eff date for the maximum evaluation date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie for eg: Policy 1, i have to show $45646, because this is the loss amount for maximum evaluation date ie 5/30/2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 14:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date/m-p/721019#M1068698</guid>
      <dc:creator />
      <dc:date>2014-09-05T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: max date</title>
      <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721020#M1068699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a straight table&lt;/P&gt;&lt;P&gt;Dimension &lt;/P&gt;&lt;P&gt;[Policy No]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;FirstSortedValue(Loss,-EvaluationDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 14:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date/m-p/721020#M1068699</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-05T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: max date</title>
      <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721021#M1068700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAA:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;PolicyNo, EffDate, EvaluationDate, Loss&lt;/P&gt;&lt;P&gt;1, 1/1/2010, 1/31/2011, 45,643&lt;/P&gt;&lt;P&gt;1, 1/1/2010, 3/31/2011, 45,644&lt;/P&gt;&lt;P&gt;1, 1/1/2010, 4/30/2012, 45,645&lt;/P&gt;&lt;P&gt;1, 1/1/2010, 5/30/2012, 45,646&lt;/P&gt;&lt;P&gt;2, 1/1/2011, 1/31/2011, 55,645&lt;/P&gt;&lt;P&gt;3, 2/1/2012, 3/31/2011, 23&lt;/P&gt;&lt;P&gt;3, 2/1/2012, 4/30/2012, 46&lt;/P&gt;&lt;P&gt;3, 2/1/2012, 5/31/2012, 47&lt;/P&gt;&lt;P&gt;4, 2/1/2012, 6/30/2014, 647&lt;/P&gt;&lt;P&gt;4, 2/1/2012, 7/31/2014, 648];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BBB: &lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD * Resident AAA;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD PolicyNo, EffDate, Date(Max(EvaluationDate)) as maximo Resident AAA Group By PolicyNo, EffDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table AAA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way you have a new field that you can use in your object to take Max values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 14:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date/m-p/721021#M1068700</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-09-05T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: max date</title>
      <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721022#M1068701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Rakesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;This is perfect scenario to use FirstSortedValue() function. I've made a video tutorial on this top. Please check the following link(s) on my blog. It's really powerful to use and very useful when you want to get max or min value based on a specific field. One more advantage - FirstSortedValue() supports SET Expression (SET Analysis).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A class="unlinked" style="font-size: 10pt; line-height: 1.5em;" title="http://qlikshare.com/392/"&gt;http://qlikshare.com/392/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A class="unlinked" title="http://qlikshare.com/398/"&gt;http://qlikshare.com/398/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 14:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date/m-p/721022#M1068701</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-05T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: max date</title>
      <link>https://community.qlik.com/t5/QlikView/max-date/m-p/721023#M1068702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand, you need the maximum EvaluationDate for each Policy No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so... Make a table with Policy No, Max Eval Date, Loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Express. for Max Eval Date = Date(Max(Aggr(Max(F3),F1,F3)))&lt;/P&gt;&lt;P&gt;And for Loss FirstSortedValue(F4,-Aggr(Max(F3),F1,F3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 14:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date/m-p/721023#M1068702</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-09-05T14:50:12Z</dc:date>
    </item>
  </channel>
</rss>

