<?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: Month function in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393561#M700405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Gysbert, accidentally deleted your post but it did work as well. All great options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 18:52:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-01T18:52:52Z</dc:date>
    <item>
      <title>Month function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393557#M700401</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;Full disclosure I'm not a QV developer, just playing one on TV.&lt;/P&gt;&lt;P&gt;Trying to load several fields from and Oracle DB and in the process create a new Month and Year field based upon a timestamp field that is coming in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;Currently have:&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DETL:&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL SELECT &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;ID,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;CREATE_DATE,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;MONTH (CREATE_DATE) as CREATEMONTH;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And get:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;ErrorSource: OraOLEDB, ErrorMsg: ORA-00904: "MONTH": invalid identifier&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;Can I do this or am I just doing somethign stupid?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;Thanks in advance,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;Jim&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 18:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393557#M700401</guid>
      <dc:creator />
      <dc:date>2012-11-01T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Month function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393558#M700402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In principle you should be able to do this, but it is better if you use a preceding load:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;CREATE_DATE,&lt;/P&gt;&lt;P&gt;MONTH (CREATE_DATE) as CREATEMONTH;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 18:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393558#M700402</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-11-01T18:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Month function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393559#M700403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly. Thanks for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 18:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393559#M700403</guid>
      <dc:creator />
      <dc:date>2012-11-01T18:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Month function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393560#M700404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use To_Char function too&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #fafafa;"&gt;To_Char(Date_Field,'MM') = 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #fafafa;"&gt;To_Char(Date_Field,'MON') = JAN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #fafafa;"&gt;To_Char(Date_Field,'YY') = 03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #fafafa;"&gt;To_Char(Date_Field,'YYYY') = 2003&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; background-color: #fafafa;"&gt;Also you can go with preceding load as suggested by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/hic" id="jive-40035175178664059284" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Henric Cronström&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 18:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393560#M700404</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-01T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Month function in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393561#M700405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Gysbert, accidentally deleted your post but it did work as well. All great options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 18:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-function-in-Script/m-p/393561#M700405</guid>
      <dc:creator />
      <dc:date>2012-11-01T18:52:52Z</dc:date>
    </item>
  </channel>
</rss>

