<?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 Problems with Year() Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297917#M1199402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView field names ARE case-sensitive, so you must be consistent. If your field is spelled DATUM in all capital letters, your year function should be Year(DATUM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 20:58:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-03T20:58:48Z</dc:date>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297915#M1199400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everybody,&lt;/P&gt;&lt;P&gt;I'm new with qilikview and trying to make my first project.&lt;/P&gt;&lt;P&gt;I import data from an firebird database via ODBC. When adding the Year function (as stated below) the script makes an error:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: HY000, ErrorCode: 4294967192, ErrorMsg: [ODBC Firebird Driver][Firebird]Dynamic SQL Error&lt;BR /&gt;SQL error code = -104&lt;BR /&gt;Token unknown - line 3, column 5&lt;BR /&gt;Year&lt;BR /&gt;SQL SELECT ID,&lt;BR /&gt; DATUM,&lt;BR /&gt; Year(Datum) as Jahr,&lt;BR /&gt; WAEHRUNG,&lt;BR /&gt; "WAEHRUNG_KURS",&lt;BR /&gt; "MWST_SATZ",&lt;BR /&gt; "GESAMTSUMME_NETTO",&lt;BR /&gt; HEADER,&lt;BR /&gt; "HAUPT_ID",&lt;BR /&gt; "BEZAHLT_BRUTTO"&lt;BR /&gt;FROM "V_RECHNUNG"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I make a very trivial mistake but I don't know where and why? Datum is a timestamp format and without the year function the script works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for every help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297915#M1199400</guid>
      <dc:creator />
      <dc:date>2011-01-03T20:34:20Z</dc:date>
    </item>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297916#M1199401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i don't know Firebird SQL, but it depends on every DB Engine how to extract this values, for example in MSSQL is Year(Field) as Year, but in Oracle is Extract(Year From Field) as Year&lt;/P&gt;&lt;P&gt;If you don't know how is the function try this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load&lt;BR /&gt;*,&lt;BR /&gt; Year(DATUM) as Jahr&lt;BR /&gt;;&lt;BR /&gt; SQL SELECT ID,&lt;BR /&gt; DATUM,&lt;BR /&gt; WAEHRUNG,&lt;BR /&gt; "WAEHRUNG_KURS",&lt;BR /&gt; "MWST_SATZ",&lt;BR /&gt; "GESAMTSUMME_NETTO",&lt;BR /&gt; HEADER,&lt;BR /&gt; "HAUPT_ID",&lt;BR /&gt; "BEZAHLT_BRUTTO"&lt;BR /&gt;FROM "V_RECHNUNG"&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So, you are using the QlikView's year() function&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297916#M1199401</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-03T20:55:46Z</dc:date>
    </item>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297917#M1199402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView field names ARE case-sensitive, so you must be consistent. If your field is spelled DATUM in all capital letters, your year function should be Year(DATUM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297917#M1199402</guid>
      <dc:creator />
      <dc:date>2011-01-03T20:58:48Z</dc:date>
    </item>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297918#M1199403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think Year() is a function defined to Firebird. If you are trying to use the Qlikview Year() function, is should be used in a preceeding load like this:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt; Year(DATUM) as Jahr&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT ID,&lt;BR /&gt; DATUM,&lt;BR /&gt; WAEHRUNG,&lt;/P&gt;&lt;P&gt;"WAEHRUNG_KURS",&lt;BR /&gt; "MWST_SATZ",&lt;BR /&gt; "GESAMTSUMME_NETTO",&lt;BR /&gt; HEADER,&lt;BR /&gt; "HAUPT_ID",&lt;BR /&gt; "BEZAHLT_BRUTTO"&lt;BR /&gt;FROM "V_RECHNUNG"&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 21:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297918#M1199403</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-01-03T21:08:19Z</dc:date>
    </item>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297919#M1199404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as i said it's a SQL's DML problem&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.firebirdsql.org/refdocs/langrefupd20-extract.html"&gt;http://www.firebirdsql.org/refdocs/langrefupd20-extract.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Use Extract&lt;/B&gt; from instead of Year() OR, put the year() function between the Load and ";" before the SQL Select Statement&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 21:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297919#M1199404</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-03T21:08:36Z</dc:date>
    </item>
    <item>
      <title>Problems with Year() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297920#M1199405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your support! Extract function works. &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 08:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Year-Function/m-p/297920#M1199405</guid>
      <dc:creator />
      <dc:date>2011-01-04T08:44:18Z</dc:date>
    </item>
  </channel>
</rss>

