<?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 last date for which has a value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432320#M487743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone! I've now got a few expressions from which I can pick and choose! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2013 09:23:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-13T09:23:32Z</dc:date>
    <item>
      <title>Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432313#M487736</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 have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="137" style="width: 222px; border: 1px solid rgb(0, 0, 0); height: 131px;"&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;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;Production (meters)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/02/2013&lt;/TD&gt;&lt;TD&gt;108&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/02/2013&lt;/TD&gt;&lt;TD&gt;502&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/02/2013&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/02/2013&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;05/02/2013&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the last date which has got a Production value (so it will be 03/02/2013 because the dates thereafter has not values). The date must be able to show in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it using a formula/expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432313#M487736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432314#M487737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a flag in your script (1 when Production &amp;gt;0),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your expression will be easy Max({&amp;lt; Flag_production_value = {1} &amp;gt;} Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432314#M487737</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-02-13T08:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432315#M487738</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;This should do it&lt;/P&gt;&lt;P&gt;=Date(Max(If(Production &amp;lt;&amp;gt; 0, Date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432315#M487738</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-02-13T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432316#M487739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hennie,&lt;/P&gt;&lt;P&gt;You should solve with this exèression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max( {&amp;lt;Production={"&amp;gt;0"}&amp;gt;} Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432316#M487739</guid>
      <dc:creator />
      <dc:date>2013-02-13T08:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432317#M487740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;This should work, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13607461653378462" jivemacro_uid="_13607461653378462"&gt;&lt;P&gt;=Date(Max({&amp;lt;Production={"&amp;lt;&amp;gt;0"}&amp;gt;}Date))&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432317#M487740</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2013-02-13T09:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432318#M487741</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(max({&amp;lt;Production ={"&amp;lt;&amp;gt;0"}&amp;gt;} Date_t))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the sample application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432318#M487741</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-02-13T09:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432319#M487742</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;do the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.In script load date as&amp;nbsp; Num(Date) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.use set ananlysis in text object&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({&amp;lt;Date={$(=max(Date))}&amp;gt;}value)&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;Anant Dubey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432319#M487742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get last date for which has a value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432320#M487743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone! I've now got a few expressions from which I can pick and choose! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-last-date-for-which-has-a-value/m-p/432320#M487743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T09:23:32Z</dc:date>
    </item>
  </channel>
</rss>

