<?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 to extract particular year and find the column with the earliest date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634889#M677116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If You have MSSqlServer&amp;nbsp; &amp;lt; 2008 You try&lt;/P&gt;&lt;P&gt;DATEPART(year,date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 08:16:49 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2014-06-02T08:16:49Z</dc:date>
    <item>
      <title>How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634881#M677108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how do I extract records only from the year 2012? I have many date fields all with different dates and I also want to find the date field with the earliest date. How can I do this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 03:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634881#M677108</guid>
      <dc:creator />
      <dc:date>2014-06-02T03:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634882#M677109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rachel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a where clause, in your Load command with year(Field) = 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second question, you can use the min function combined with the if function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 04:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634882#M677109</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-02T04:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634883#M677110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load If(DateField1 &amp;lt; DateField2 , If(DateField1 &amp;lt; DateField3, 'DateField1 has minimum date','DateField3 has minimum date'),if(DateField2 &amp;lt;DateField3, 'DateField2 has minimum date','DateField3 has minimum date')); &lt;/P&gt;&lt;P&gt;Load min(DateField1) as DateField1 ,min(DateField2) as DateField2,min(DateField3) as DateField3 From Table where Year(DateField)=2012;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 04:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634883#M677110</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-06-02T04:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634884#M677111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(match(Year,,'2012' ),Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 04:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634884#M677111</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-06-02T04:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634885#M677112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Extract records only from the year 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Table_Name where Year(Date_Field)='2012' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; For the second question, i.e identifying the date field which has minimum value. I have one doubt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Do you want this at Script Level/UI part of the report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 06:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634885#M677112</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-06-02T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634886#M677113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, apparently i cant use&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; year(Field) = 2012.&lt;/SPAN&gt; this is what i did:&lt;/P&gt;&lt;P&gt;sql select&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.(other fields)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;statusdate.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;from &amp;lt;filename&amp;gt; where year(statusdate)=2012;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an error message stated that 'year' is an invalid identifier...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634886#M677113</guid>
      <dc:creator />
      <dc:date>2014-06-02T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634887#M677114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are fetching data from file, use the bellow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;File_Name.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where Year(Status_Dt)='2012';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634887#M677114</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-06-02T07:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634888#M677115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview Year function may not be available in database. Which database are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 08:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634888#M677115</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-06-02T08:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634889#M677116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If You have MSSqlServer&amp;nbsp; &amp;lt; 2008 You try&lt;/P&gt;&lt;P&gt;DATEPART(year,date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 08:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634889#M677116</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-06-02T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract particular year and find the column with the earliest date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634890#M677117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if your Date field is returning dates from DB in format such as 'DD/MM/YY hh:mm:ss TT' or 'DD/MM/YY' , try this&lt;/P&gt;&lt;P&gt;Year(Date(Trunc(Date_field),'DD/MM/YY') = '2012' or Year(Date(Date_field,'DD/MM/YY') = '2012' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Convert the Date field into number and use the min function, Min(num(Date#(Datefield,'format')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nimitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-particular-year-and-find-the-column-with-the/m-p/634890#M677117</guid>
      <dc:creator />
      <dc:date>2014-06-02T09:07:20Z</dc:date>
    </item>
  </channel>
</rss>

