<?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 Help with a load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229314#M81247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Ilauses,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The major problem I have is that I have some expressions which use max(Date) and addMonths(). If I load everything including the full year 2011, my max date becomes Dec-2011 and not Jan-2011, even though I have no data at the moment.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to make the modification in the load script to restrict what comes in the first place.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2011 22:55:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-24T22:55:59Z</dc:date>
    <item>
      <title>Help with a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229312#M81245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am having a small issue with a load script.&lt;/P&gt;&lt;P&gt;Script is as follows:&lt;/P&gt;&lt;P&gt;Date_Table:&lt;BR /&gt;LOAD DATE,&lt;BR /&gt; date(date#(DATE_YEAR_MONTH,'MMMYYYY'),'MMM-YYYY') as [DATE Month-Year],&lt;/P&gt;&lt;P&gt;DATE_YEAR&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Location ......&lt;/P&gt;&lt;P&gt;where DATE_YEAR = '2009' OR DATE_YEAR = '2010' or DATE_YEAR = '2011'';&lt;/P&gt;&lt;P&gt;Now, my script works fine, but it returns all the months for 2011 although I have no data for them yet.&lt;/P&gt;&lt;P&gt;I edited the script to read as follows:&lt;/P&gt;&lt;P&gt;where DATE_YEAR = '2009' OR DATE_YEAR = '2010' or date(date#(DATE_YEAR_MONTH,'MMMYYYY'),'MMM-YYYY') = 'Jan-2011`';&lt;/P&gt;&lt;P&gt;That works fine, but it means that when we get to use February data, I will have to add Feb-2011 to the WHERE clause and will need to do this for every new month which I do not want to do.&lt;/P&gt;&lt;P&gt;In addition, I cannot use today() function in conjunction with addmonths() because the way our app data becomes available does not conform with regular time and dates.&lt;/P&gt;&lt;P&gt;Is there any other way, I can solve this issue with having to add a new month everytime I receive new data.&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229312#M81245</guid>
      <dc:creator />
      <dc:date>2011-02-24T17:34:48Z</dc:date>
    </item>
    <item>
      <title>Help with a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229313#M81246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6724.artificio.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6724.artificio.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't use clause WHERE for calendar table&lt;/P&gt;&lt;P&gt;For data table i use artificio (see image attached) for omitt NULL values&lt;/P&gt;&lt;P&gt;Good luck, Luis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 19:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229313#M81246</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-02-24T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Help with a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229314#M81247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Ilauses,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The major problem I have is that I have some expressions which use max(Date) and addMonths(). If I load everything including the full year 2011, my max date becomes Dec-2011 and not Jan-2011, even though I have no data at the moment.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to make the modification in the load script to restrict what comes in the first place.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 22:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229314#M81247</guid>
      <dc:creator />
      <dc:date>2011-02-24T22:55:59Z</dc:date>
    </item>
    <item>
      <title>Help with a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229315#M81248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the maximum date for which you have data. Load where DATE &amp;lt;= that date.&lt;/P&gt;&lt;P&gt;For that matter, if all you're doing is loading date information, is there a reason to load from a source instead of just autogenerating a calendar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 23:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-load-script/m-p/229315#M81248</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-24T23:25:43Z</dc:date>
    </item>
  </channel>
</rss>

