<?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/max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218922#M71987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this&lt;/P&gt;&lt;P&gt;LOAD CustomerName,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;min(Date) as MinDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;C:\Users\operator_bi\Desktop\proj\invoices\globul_invoice_2008_11_01.xls&lt;BR /&gt;(biff, embedded labels, table is details_1$)&lt;/P&gt;&lt;P&gt;GROUP BY CustomerName,Date,Value;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 07:30:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-22T07:30:55Z</dc:date>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218914#M71979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I need to get the min and max value from a date field. The date is in YYYY-MM-DD format.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218914#M71979</guid>
      <dc:creator />
      <dc:date>2010-01-21T09:52:29Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218915#M71980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MIN- or MAX-function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD MIN(MyDate) AS MinDate, MAX(MyDate) AS MaxDate FROM ....&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218915#M71980</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-01-21T09:55:28Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218916#M71981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason those functions do not work. When I reload the script an eror message saying "Invalid expression" is displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218916#M71981</guid>
      <dc:creator />
      <dc:date>2010-01-21T10:05:05Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218917#M71982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please post your script so we can take a look.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 11:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218917#M71982</guid>
      <dc:creator />
      <dc:date>2010-01-21T11:07:30Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218918#M71983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps your date is in string then try using the &lt;STRONG&gt;makedate&lt;/STRONG&gt; function&lt;/P&gt;&lt;P&gt;or use date(min(date#(MyDate))) as MinDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 12:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218918#M71983</guid>
      <dc:creator />
      <dc:date>2010-01-21T12:07:20Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218919#M71984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;B&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt; Number,&lt;BR /&gt; Date,&lt;BR /&gt;min(Date) &lt;B&gt;as&lt;/B&gt; MinDate&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt;&lt;BR /&gt;C:\Users\operator_bi\Desktop\proj\invoices\globul_invoice_2008_11_01.xls&lt;BR /&gt;(&lt;BR /&gt; biff, embedded labels, table is details_1$);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218919#M71984</guid>
      <dc:creator />
      <dc:date>2010-01-21T13:17:02Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218920#M71985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have similiar problem. I wrote the following code :&lt;/P&gt;&lt;P&gt;LOAD CustomerName, Date, Value, min(Date) as MinDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;C:\Users\operator_bi\Desktop\proj\invoices\globul_invoice_2008_11_01.xls&lt;BR /&gt;(biff, embedded labels, table is details_1$)&lt;/P&gt;&lt;P&gt;GROUP BY CustomerName&lt;/P&gt;&lt;P&gt;and i get "Invalid expression". I tryed every option with date formating. I read several other post, but no result. So if you know anything, I will be glad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218920#M71985</guid>
      <dc:creator />
      <dc:date>2010-01-21T13:51:22Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218921#M71986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When you use an aggregation function, like min, max, avg etc. you must use a group by clause and specify all other fields that aren't being aggregated.&lt;BR /&gt;For instance, if you want to do this:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;A,&lt;BR /&gt;B,&lt;BR /&gt;max(C) as C&lt;/P&gt;&lt;P&gt;you must have a group by clause like this:&lt;/P&gt;&lt;P&gt;group by A, B&lt;/P&gt;&lt;P&gt;This should work for you:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;min(Date) as MinDate&lt;BR /&gt;FROM C:\Users\operator_bi\Desktop\proj\invoices\globul_invoice_2008_11_01.xls (biff, embedded labels, table is details_1$)&lt;BR /&gt;GROUP BY Number;&lt;/P&gt;&lt;P&gt;Refer to the helpfile and look for Aggregation functions to get some examples.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 18:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218921#M71986</guid>
      <dc:creator />
      <dc:date>2010-01-21T18:33:31Z</dc:date>
    </item>
    <item>
      <title>min/max date</title>
      <link>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218922#M71987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this&lt;/P&gt;&lt;P&gt;LOAD CustomerName,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;min(Date) as MinDate&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;C:\Users\operator_bi\Desktop\proj\invoices\globul_invoice_2008_11_01.xls&lt;BR /&gt;(biff, embedded labels, table is details_1$)&lt;/P&gt;&lt;P&gt;GROUP BY CustomerName,Date,Value;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 07:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/min-max-date/m-p/218922#M71987</guid>
      <dc:creator />
      <dc:date>2010-01-22T07:30:55Z</dc:date>
    </item>
  </channel>
</rss>

