<?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 Where is the error? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-is-the-error/m-p/152175#M29705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!! I can't find where is the error in this scrip: (in DATABASE1 there is DATAWORK '01/01/2009 00:00')&lt;/P&gt;&lt;P&gt;Let vCurrentYear=year(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *,&lt;/P&gt;&lt;P&gt;FROM $(db).dbo.DATABASE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(DATAWORK),&lt;/P&gt;&lt;P&gt;if(Year(date(DATAWORK))=Year($(vCurrentYear))-1, NUM_SALE) as NUM_SALE_2008&lt;/P&gt;&lt;P&gt;Resident DATABASE1;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP ME pls!!!!!&lt;/P&gt;&lt;P&gt;Thankyou very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2009 20:35:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-08T20:35:09Z</dc:date>
    <item>
      <title>Where is the error?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-is-the-error/m-p/152175#M29705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!! I can't find where is the error in this scrip: (in DATABASE1 there is DATAWORK '01/01/2009 00:00')&lt;/P&gt;&lt;P&gt;Let vCurrentYear=year(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *,&lt;/P&gt;&lt;P&gt;FROM $(db).dbo.DATABASE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(DATAWORK),&lt;/P&gt;&lt;P&gt;if(Year(date(DATAWORK))=Year($(vCurrentYear))-1, NUM_SALE) as NUM_SALE_2008&lt;/P&gt;&lt;P&gt;Resident DATABASE1;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP ME pls!!!!!&lt;/P&gt;&lt;P&gt;Thankyou very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 20:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-is-the-error/m-p/152175#M29705</guid>
      <dc:creator />
      <dc:date>2009-08-08T20:35:09Z</dc:date>
    </item>
    <item>
      <title>Where is the error?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-is-the-error/m-p/152176#M29706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't tell about some specifics - not enough info. But there are at least 2 issues:&lt;BR /&gt;1. Comma after *.&lt;BR /&gt;2. Variable vCurrentYear is 2009. The function Year(2009) returns 1905, because the date(2009) is July 1, 1905. If you want previous year, it should be just &lt;B&gt;$(vCurrentYear)-1&lt;/B&gt;.&lt;BR /&gt;(And, the field name probably should bebetter NUM_SALES_LASTYEAR instead of NUM_SALES_2008.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 22:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-is-the-error/m-p/152176#M29706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-08T22:57:10Z</dc:date>
    </item>
  </channel>
</rss>

