<?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: how do we find max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623207#M1108201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/gatikvij09"&gt;gatikvij09&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable for max date &lt;/P&gt;&lt;P&gt;Let vMaxDate=Max(SaleDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And find sales of max date using set analysis&lt;/P&gt;&lt;P&gt; =sum({&amp;lt;SaleDate={'vMaxDate'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 08:43:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-26T08:43:45Z</dc:date>
    <item>
      <title>how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623203#M1108196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to show only max date in a month and the sales on that day.&lt;/P&gt;&lt;P&gt;how to find max date ? like the sales been till 29th of march so how do we tell qlikview to show only max date i.e., 29/03/2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623203#M1108196</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623204#M1108197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;SaleDate={max(SaleDate)}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623204#M1108197</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623205#M1108198</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 think you are looking for max()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;=max(dateFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623205#M1108198</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623206#M1108199</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;In load if DateField contains max date regularly then use peek function like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let vMaxDate = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Datefield&lt;/SPAN&gt;',-1,'Tablename');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Max(Datefield)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623206#M1108199</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-26T08:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623207#M1108201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/gatikvij09"&gt;gatikvij09&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable for max date &lt;/P&gt;&lt;P&gt;Let vMaxDate=Max(SaleDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And find sales of max date using set analysis&lt;/P&gt;&lt;P&gt; =sum({&amp;lt;SaleDate={'vMaxDate'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623207#M1108201</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623208#M1108203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try to use "MaxDate" operator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623208#M1108203</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623209#M1108205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might give you required output - &lt;/P&gt;&lt;P&gt;=sum({&amp;lt;CalendarDate={"$(=max(CalendarDate))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623209#M1108205</guid>
      <dc:creator />
      <dc:date>2014-03-26T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623210#M1108207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;create on &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Calendarday&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; in your script &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;day(date) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Calendarday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from datasoruce ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;Calendarday= {"$(=max({&amp;lt;Date={$(=max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date&lt;/SPAN&gt;))}&amp;gt;} Calandarday))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623210#M1108207</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-26T09:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do we find max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623211#M1108209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are linking to a calendar that projects into the futute then you will have to ensure that it ties up with your sales data.&lt;/P&gt;&lt;P&gt;Add a variable (Ctrl + Alt + V)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable vCurrentDate = Date(Max({&amp;lt;SalesReference-=0 &amp;gt; } DateLK), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using {&amp;lt;SalesReference-=0 &amp;gt; } will ensure that it pulls back the date from the last sales entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression would be&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateLK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=vCurrentDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CLG_Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-we-find-max-date/m-p/623211#M1108209</guid>
      <dc:creator />
      <dc:date>2014-03-26T10:03:15Z</dc:date>
    </item>
  </channel>
</rss>

