<?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 Getting Month and Year Fields from a Single Date Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146202#M24798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one little thing though.&lt;/P&gt;&lt;P&gt;The Month function only takes one argument so you can't load it and format it all at once.&lt;/P&gt;&lt;P&gt;But thanks again!&lt;/P&gt;&lt;P&gt;Yiling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 23:38:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-08T23:38:41Z</dc:date>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146197#M24793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone I just started learning Qlikview for an internship. Right now I have an Excel spreadsheet with a Column of dates (OrderDate). However, in my Qlikview application I need to make selections based on Month and Year.&lt;/P&gt;&lt;P&gt;Currently, in my Month and Year tables, I'm using the expressions Month(OrderDate) and Year(OrderDate) respectively. This works, but I also have a Current Selections box in my application and since neither the Month or the Year are fields, making a selection in either of the boxes only shows up as an OrderDate Field with a Value of somthing like 32 of 548.&lt;/P&gt;&lt;P&gt;I have a completed example as a reference and in that example, making a selection in either the Month or Year boxes shows up as the Month or Year field in the Current Selections box, and has a value of Jan, Feb, ...etc and 2005,2006,...etc.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks, Yiling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146197#M24793</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:50:10Z</dc:date>
    </item>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146198#M24794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yiling&lt;/P&gt;&lt;P&gt;You should probably create these fields in your load script, at the moment you probably have something like:&lt;/P&gt;&lt;P&gt;LOAD OrderDate FROM xxxxx.XLS&lt;/P&gt;&lt;P&gt;You should change this so that you have:&lt;/P&gt;&lt;P&gt;LOAD OrderDate, MONTH(OrderDate, 'MMM') AS OrderMonth, YEAR(OrderDate,'YYYY') AS OrderYear FROM xxxx.XLS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should make them separate fields.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 22:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146198#M24794</guid>
      <dc:creator />
      <dc:date>2009-06-08T22:55:14Z</dc:date>
    </item>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146199#M24795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;Currently my script looks like:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [Excel Files;DBQ=C:\...\Sales.xls];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM `C:\...\Sales.xls`.`Customers$`;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM `C:\...\Sales.xls`.`Orders$`;&lt;/P&gt;&lt;P&gt;where Customers and Orders are two different tables within the Sales.xls document. I know that the SQL Select * means its reading all the fields from the table, but I never use LOAD anywhere. How would I change this?&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Yiling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146199#M24795</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:05:26Z</dc:date>
    </item>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146200#M24796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you might want to simply change your script to read something like&lt;/P&gt;&lt;P&gt;SQL SELECT *, Month(OrderDate,'MMM') As OrderMonth, Year(OrderDate,'YYYY') AS OrderYear FROM...........&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146200#M24796</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:24:51Z</dc:date>
    </item>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146201#M24797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146201#M24797</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:34:43Z</dc:date>
    </item>
    <item>
      <title>Getting Month and Year Fields from a Single Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146202#M24798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one little thing though.&lt;/P&gt;&lt;P&gt;The Month function only takes one argument so you can't load it and format it all at once.&lt;/P&gt;&lt;P&gt;But thanks again!&lt;/P&gt;&lt;P&gt;Yiling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 23:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Month-and-Year-Fields-from-a-Single-Date-Field/m-p/146202#M24798</guid>
      <dc:creator />
      <dc:date>2009-06-08T23:38:41Z</dc:date>
    </item>
  </channel>
</rss>

