<?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 Calendar Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219346#M72376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;it seems that your variables didn´t contain the values you expected to create your registration calendar.&lt;/P&gt;&lt;P&gt;Control the variables :&lt;/P&gt;&lt;P&gt;- Settings&lt;/P&gt;&lt;P&gt;- list of variables&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2009 19:28:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-19T19:28:51Z</dc:date>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219345#M72375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using two calendars (first based on orders date and second one on customer registration date). Order date calendar works fine but the registration calendar display years since 1900!&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;//Define variable of the minimum Date for Registration&lt;BR /&gt;LET varMinRegDate = Num (Peek ('mreg', 0,'Customers'));&lt;BR /&gt;&lt;BR /&gt;//Define variable of the maximum Date for Registration&lt;BR /&gt;LET varMaxRegDate = Num (Peek ('mreg', -1,'Customers'));&lt;BR /&gt;&lt;BR /&gt;//******************** Temporary Calendar for Registration **********************&lt;BR /&gt;&lt;BR /&gt;TempRegCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; $(varMinRegDate)+IterNo()-1 as Num,&lt;BR /&gt; Date($(varMinRegDate)+IterNo()-1) as TempRegDate&lt;BR /&gt;AUTOGENERATE (1) WHILE $(varMinRegDate)+IterNo()-1 &amp;lt;= $(varMaxRegDate);&lt;BR /&gt;&lt;BR /&gt;RegCalendar:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; TempRegDate as mreg,&lt;BR /&gt; Year (TempRegDate) as RegYear,&lt;BR /&gt; Month (TempRegDate) as RegMonth,&lt;BR /&gt; num (Month (TempRegDate), '00') as RegMonthNum,&lt;BR /&gt; Week (TempRegDate) as RegWeek,&lt;BR /&gt; Day (TempRegDate) as RegDay,&lt;BR /&gt; WeekDay (TempRegDate) as RegWeekDay,&lt;BR /&gt; applymap ('QuartersRegMap', num (Month (TempRegDate), '00'), 'no quarter') as QuartersReg,&lt;BR /&gt; Date (monthstart(TempRegDate), 'MM-YYYY') as RegMonthYear&lt;BR /&gt;RESIDENT TempRegCalendar ORDER BY TempRegDate ASC;&lt;BR /&gt;&lt;BR /&gt;// TempCalendar was used to created the TempDate. TempCalendar is now obsolete&lt;BR /&gt;DROP TABLE TempRegCalendar;&lt;/P&gt;&lt;P&gt;Thx in advance for your help&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 19:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219345#M72375</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-10-19T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219346#M72376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;it seems that your variables didn´t contain the values you expected to create your registration calendar.&lt;/P&gt;&lt;P&gt;Control the variables :&lt;/P&gt;&lt;P&gt;- Settings&lt;/P&gt;&lt;P&gt;- list of variables&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 19:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219346#M72376</guid>
      <dc:creator />
      <dc:date>2009-10-19T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219347#M72377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rainer,&lt;/P&gt;&lt;P&gt;Thx for your prompt reply, Indeed the varMinRegDate is empty! Stop me if i'm wrong but the system is supposed to fill those variables during the loading?&lt;/P&gt;&lt;P&gt;How can I fix that?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 19:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219347#M72377</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-10-19T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219348#M72378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guy,&lt;/P&gt;&lt;P&gt;we are able to have a fix start date of an calendar or we fill variables dynamically during script execution.&lt;/P&gt;&lt;P&gt;Qustion of interest here is: Why is your variable empty?&lt;/P&gt;&lt;P&gt;Run your script using the debugger could help to find out why.&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;Are you able to strip down your source and place an example here in the forum so that we can work with it?&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219348#M72378</guid>
      <dc:creator />
      <dc:date>2009-10-19T20:05:09Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219349#M72379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a similar issue wherein the peek is returning null for the first record and the issue was the referenced field was having a blank in the data set.&lt;/P&gt;&lt;P&gt;try with the following and check whether it returns the second date onwards:&lt;/P&gt;&lt;P&gt;//Define variable of the minimum Date for Registration&lt;BR /&gt;LET varMinRegDate = Num (Peek ('mreg', &lt;STRONG&gt;1&lt;/STRONG&gt;,'Customers'))&lt;/P&gt;&lt;P&gt;--Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219349#M72379</guid>
      <dc:creator />
      <dc:date>2009-10-19T20:07:49Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219350#M72380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;I found some null records and delete them. it works fine now.&lt;/P&gt;&lt;P&gt;Also the expected values are set for variables.&lt;/P&gt;&lt;P&gt;Thank you all for the help.&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219350#M72380</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-10-19T20:50:08Z</dc:date>
    </item>
    <item>
      <title>Calendar Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219351#M72381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers! Happy Qlicking...&lt;/P&gt;&lt;P&gt;--Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 21:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Issues/m-p/219351#M72381</guid>
      <dc:creator />
      <dc:date>2009-10-19T21:02:56Z</dc:date>
    </item>
  </channel>
</rss>

