<?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: Query on formula for max date,2 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593864#M1111807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to work it out in the end through Set Analysis if anyone is interested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Measurement actionDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=max([Measurement actionDate],2))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Measurement measurementValue]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 14:58:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-03T14:58:37Z</dc:date>
    <item>
      <title>Query on formula for max date,2</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593863#M1111806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an expression that combines the ability to find the 2nd maximum actiondate and then give the sum of measurement value from this record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Measurement actionDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SUM(Measurement measurementValue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can obtain the 2nd max date without any issues using the first part of the expression but cannot sum on that record.&lt;BR /&gt;Any ideas please?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 14:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593863#M1111806</guid>
      <dc:creator />
      <dc:date>2014-03-03T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query on formula for max date,2</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593864#M1111807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to work it out in the end through Set Analysis if anyone is interested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Measurement actionDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=max([Measurement actionDate],2))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Measurement measurementValue]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 14:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593864#M1111807</guid>
      <dc:creator />
      <dc:date>2014-03-03T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query on formula for max date,2</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593865#M1111808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAA:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date,2),'DD/MM/YYYY') AS [Max Measurement actionDate]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From&lt;/P&gt;&lt;P&gt;Sample1111.qvd&lt;/P&gt;&lt;P&gt;(qvd) Group By ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date,'DD/MM/YYYY') AS [Max Measurement actionDate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Measurement measurementValue]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sample1111.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the Attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-formula-for-max-date-2/m-p/593865#M1111808</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-03-03T15:14:49Z</dc:date>
    </item>
  </channel>
</rss>

