<?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: Get Date of Max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520585#M557111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2013 08:01:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-01T08:01:51Z</dc:date>
    <item>
      <title>Get Date of Max value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520581#M557107</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 try to find the date when the max value occures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example table:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Car&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BMW&lt;/TD&gt;&lt;TD&gt;01-05-2001&lt;/TD&gt;&lt;TD&gt;2345,00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;VW&lt;/TD&gt;&lt;TD&gt;03-05-2001&lt;/TD&gt;&lt;TD&gt;1555,00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BMW&lt;/TD&gt;&lt;TD&gt;25-07-2004&lt;/TD&gt;&lt;TD&gt;4533,99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;VW&lt;/TD&gt;&lt;TD&gt;19-04-2003&lt;/TD&gt;&lt;TD&gt;2999,99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BMW&lt;/TD&gt;&lt;TD&gt;02-12-2005&lt;/TD&gt;&lt;TD&gt;4999,99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i have to say my table is animated.&lt;/P&gt;&lt;P&gt;Means i use Max({&amp;lt;Date={'&amp;lt;=$(currentDate)'}&amp;gt;}Price) in Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currentDate is a variable, with changes every second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to find the linked date, when the max Price occurres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldValue('Date',FieldIndex('Price',Max({&amp;lt;Date={'&amp;lt;=$(currentDate)'}&amp;gt;}Price)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not working...&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 10:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520581#M557107</guid>
      <dc:creator />
      <dc:date>2013-06-28T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date of Max value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520582#M557108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt; color: #000000;"&gt;Hi Sarah,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt; color: #000000;"&gt;Have you tried using FirstSortedValue()? This will fetch the Date for the Max Price value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; background-color: #ffffff; font-size: 10pt;"&gt;Firstsortedvalue(DISTINCT Value, Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;I've created video tutorial on my blog. Please check this link...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;A class="loading" href="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: 'trebuchet ms', geneva;"&gt;I hope this helps! BTW - I'd recommend using animated/Now() functions in the dashboard. It might work okay but there will be constant CPU overhead. I'm sure you're aware of this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Good luck!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; background-color: #ffffff; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: 'trebuchet ms', geneva; background-color: #ffffff; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 10:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520582#M557108</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-06-28T10:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date of Max value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520583#M557109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for the reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes,&amp;nbsp; &lt;STRONG&gt;FirstSortedValue(distinct Date, -Price)&lt;/STRONG&gt; solves the problem.&lt;/P&gt;&lt;P&gt;Very nice and compact function!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also some very informative movies:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm happy that u understand how to animate with now()-function, so i have to use this chance to ask some questions about the experience with "self-animated" charts^^&lt;/P&gt;&lt;P&gt;What do u mean with constant CPU overhead?&lt;/P&gt;&lt;P&gt;I know that the animation needs more CPU than normal charts, but not in an damaging amount...&lt;/P&gt;&lt;P&gt;Do u think, that animating with the now()-function should be avoided?&lt;/P&gt;&lt;P&gt;Or is it a question of performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 11:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520583#M557109</guid>
      <dc:creator />
      <dc:date>2013-06-28T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date of Max value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520584#M557110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi Sarah,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;I'm glad you solved it by using FirstSortedValue() function. It's one my favourite function in QlikView.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;I did some animations using Now() to show stock live in a store. I.e showing/hiding images based on time and using source data of current available stock. It works fine but if you have massive application with loads of calculations then it will bring down the peformance &amp;amp; user experience. As you understand that QlikView caches all the calculations until Working Set Limits are reached. So performing calculations every second may not be a good idea if you have complex calculations or variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;It's not recommended but it doesn't matter if it's simple application and if it's already working fine. Probably you should come up with mathematical approach of calculating once every few minute instead of every second.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2013 17:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520584#M557110</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-06-29T17:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Date of Max value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520585#M557111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 08:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Date-of-Max-value/m-p/520585#M557111</guid>
      <dc:creator />
      <dc:date>2013-07-01T08:01:51Z</dc:date>
    </item>
  </channel>
</rss>

