<?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 Min Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509289#M190304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a table WORKORDER:&lt;/P&gt;&lt;P&gt;ID_W&lt;/P&gt;&lt;P&gt;ID_GROUP&lt;/P&gt;&lt;P&gt;IS_OPENED (Boolean)&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to get the first date that is still opened by ID_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be Can I use Previous or Peek ? I dont know really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 12:32:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-11T12:32:41Z</dc:date>
    <item>
      <title>Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509289#M190304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a table WORKORDER:&lt;/P&gt;&lt;P&gt;ID_W&lt;/P&gt;&lt;P&gt;ID_GROUP&lt;/P&gt;&lt;P&gt;IS_OPENED (Boolean)&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to get the first date that is still opened by ID_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be Can I use Previous or Peek ? I dont know really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509289#M190304</guid>
      <dc:creator />
      <dc:date>2013-09-11T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509290#M190305</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;Max:&lt;/P&gt;&lt;P&gt;Load Max(Date) as MaxDate&amp;nbsp; FROM &amp;lt;&amp;gt; where IS_OPEN='Y';&amp;nbsp; // or may be IS_OPEN='1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxdate = Peek('MaxDate')&amp;nbsp; ;&amp;nbsp; // now the variable holds the max date&lt;/P&gt;&lt;P&gt;Drop table Max;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509290#M190305</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-11T12:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509291#M190306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinDate:&lt;/P&gt;&lt;P&gt;Load ID_GROUP, min(DATE) as MIN_DATE&lt;/P&gt;&lt;P&gt;Resident WORKORDER&lt;/P&gt;&lt;P&gt;Where IS_OPENED = 1&lt;/P&gt;&lt;P&gt;Group By ID_GROUP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want the minimum date but simply the first date value encountered you can use FirstValue(DATE) instead of min(DATE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 17:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509291#M190306</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-11T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509292#M190307</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 with firstvalue() function to get the first value for id group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load ID_GROUP, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FirstValue&lt;/SPAN&gt;(DATE) as MIN_DATE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident WORKORDER&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where IS_OPENED = 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By ID_GROUP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 17:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509292#M190307</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-11T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509293#M190308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thank&lt;/P&gt;&lt;P&gt;I used First Value&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 06:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Date/m-p/509293#M190308</guid>
      <dc:creator />
      <dc:date>2013-09-12T06:57:25Z</dc:date>
    </item>
  </channel>
</rss>

