<?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: 'Today' is not a recognized built-in function name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785429#M277896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem.&amp;nbsp; I now know multiple ways to address situations like this.&amp;nbsp; Thank you for the insight &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 16:29:20 GMT</pubDate>
    <dc:creator>asmithids</dc:creator>
    <dc:date>2014-12-05T16:29:20Z</dc:date>
    <item>
      <title>'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785423#M277890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;I have the following load statement that is failing to load.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; 0 &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;PriceShipping&lt;/SPAN&gt;, 0 &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;PriceTax&lt;/SPAN&gt;, 'ValidationNumber' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;ValidationNumber&lt;/SPAN&gt;, 'TransactionNumber' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;TransactionNumber&lt;/SPAN&gt;,'Status' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Status&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;paymentdate&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;paymentdate&lt;/SPAN&gt; , &lt;SPAN style="color: #941100;"&gt;orderid&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;paymentamount&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;paymenttype&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;employee&lt;/SPAN&gt;, '022' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Store#&lt;/SPAN&gt;, 'Corporate' &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;StoreType&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT * FROM "022".dbo.payments WHERE Year(payments.paymentdate) &amp;lt;= Year(Today()); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;I am getting the following error that the 'Today' function is not a recognized built-in function name.&amp;nbsp; I'm not sure why as the Today() is a valid built-in function.&amp;nbsp; Thank you in advance for any assistance on this issue.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: 37000, ErrorCode: 195, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server] 'Today' is not a recognized built-in function name.&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM "022".dbo.payments WHERE Year(payments.paymentdate) &amp;lt;= Year(Today())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785423#M277890</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-12-05T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785424#M277891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use a variable in Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vYearToday = Year(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An then in your clause SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WHERE Year(payments.paymentdate) &amp;lt;= $(vYearToday);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785424#M277891</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-05T14:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785425#M277892</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;The code after the SQL statement is executed on the DB server, not in Qlikview. You can use GetDate() for SQL server, (or the equivalent function for any other DBMS) or you can pass in a variable from QV as suggested above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785425#M277892</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-12-05T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785426#M277893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yoann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; I created the variable and added it to the load script below.&amp;nbsp; However, I am still getting the exact same error using the variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT * FROM "022".dbo.payments WHERE Year(payments.paymentdate) &amp;lt;= &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vYearToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 14:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785426#M277893</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-12-05T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785427#M277894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;/SPAN&gt;!&amp;nbsp; Passing the SQL GetDate() worked.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785427#M277894</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-12-05T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785428#M277895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Sorry, I made a mistake, you have to put Let and not Set.&lt;/P&gt;&lt;P&gt;But the Jonathan Solution is better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785428#M277895</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-05T16:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: 'Today' is not a recognized built-in function name</title>
      <link>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785429#M277896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem.&amp;nbsp; I now know multiple ways to address situations like this.&amp;nbsp; Thank you for the insight &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Today-is-not-a-recognized-built-in-function-name/m-p/785429#M277896</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-12-05T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

