<?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 Problem with MasterCalendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230983#M82762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get only one(1) line in the master calendar when I load from SQL&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3120_sourceID:3120" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3121_sourceID:3121" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be wrong ? The Orders table ReklamationsTid contains several entries of each date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly&lt;/P&gt;&lt;P&gt;Håkan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 16:24:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-22T16:24:54Z</dc:date>
    <item>
      <title>Problem with MasterCalendar</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230983#M82762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get only one(1) line in the master calendar when I load from SQL&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3120_sourceID:3120" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3121_sourceID:3121" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be wrong ? The Orders table ReklamationsTid contains several entries of each date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly&lt;/P&gt;&lt;P&gt;Håkan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230983#M82762</guid>
      <dc:creator />
      <dc:date>2010-12-22T16:24:54Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with MasterCalendar</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230984#M82763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the statement from the master calendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230984#M82763</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2010-12-22T16:28:35Z</dc:date>
    </item>
    <item>
      <title>Problem with MasterCalendar</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230985#M82764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please upload the script you are using to generate the master calendar to review it.&lt;/P&gt;&lt;P&gt;Also, in these cases it is good to use the debug and go step by step through the creation of the master calendar to make sure the variables are being assigned the correct values to run the autogenerate.&lt;/P&gt;&lt;P&gt;The script should be something like the following:&lt;/P&gt;&lt;P&gt;Min_Max_Dates:&lt;BR /&gt;LOAD %Date as Min_Max_DateKey&lt;BR /&gt;RESIDENT Transactions&lt;BR /&gt;Order by %Date;&lt;/P&gt;&lt;P&gt;LET vMinDate = num(peek('Min_Max_DateKey',0,'Min_Max_Dates'));&lt;BR /&gt;LET vMaxDate = num(peek('Min_Max_DateKey',-1,'Min_Max_Dates'));&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;load Date as %Date,&lt;BR /&gt; Date,&lt;BR /&gt; year(Date) as Year,&lt;BR /&gt; dual('Q' &amp;amp; ceil(month(Date)/3),ceil(month(Date)/3)) as Quarter,&lt;BR /&gt; month(Date) as Month,&lt;BR /&gt; monthname(Date) as [Month/Year],&lt;BR /&gt; week(Date) as Week,&lt;BR /&gt; day(Date) as Day,&lt;BR /&gt; weekstart(Date) as WeekStart;&lt;BR /&gt;LOAD&lt;BR /&gt; date($(vMinDate) + recno() - 1) as Date&lt;BR /&gt;AUTOGENERATE ($(vMaxDate) - $(vMinDate) + 1);&lt;/P&gt;&lt;P&gt;drop table Min_Max_Dates;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-MasterCalendar/m-p/230985#M82764</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-22T16:29:51Z</dc:date>
    </item>
  </channel>
</rss>

