<?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 Create a false calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-false-calendar/m-p/204595#M61423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like bellow. Just remember to change the charts so that zero-values are shown (on the Presentation tab).&lt;/P&gt;&lt;P&gt;// Some orders&lt;BR /&gt;DataTable:&lt;BR /&gt;LOAD OrderNo, date#(Date,'YYYY-MM-DD') as Date, Value INLINE [&lt;BR /&gt; OrderNo, Date, Value&lt;BR /&gt; 1, 2009-10-12, 27&lt;BR /&gt; 2, 2010-01-04, 37&lt;BR /&gt; 3, 2010-12-10, 34&lt;BR /&gt; 4, 2009-05-08, 82&lt;BR /&gt; 5, 2009-06-08, 18&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// Find max and min dates&lt;BR /&gt;MaxMin:&lt;BR /&gt;Load&lt;BR /&gt; max(Date) as maxDate,&lt;BR /&gt; min(Date) as minDate&lt;BR /&gt;resident DataTable;&lt;BR /&gt;&lt;BR /&gt;// Put in variables&lt;BR /&gt;Let minDate = FieldValue( 'minDate', 1 );&lt;BR /&gt;Let maxDate = FieldValue( 'maxDate', 1 );&lt;BR /&gt;&lt;BR /&gt;// Create temp and calculate all dates between min and max&lt;BR /&gt;Calendar_tmp:&lt;BR /&gt;Load&lt;BR /&gt; date($(minDate)+RowNo()-1) as Date&lt;BR /&gt;autogenerate($(maxDate)-$(minDate)+1);&lt;BR /&gt;&lt;BR /&gt;// Calculate month, year, etc&lt;BR /&gt;Calendar:&lt;BR /&gt;Load&lt;BR /&gt; Date,&lt;BR /&gt; month(Date) as Month&lt;BR /&gt; // And so on...&lt;BR /&gt;resident Calendar_tmp;&lt;BR /&gt;drop table Calendar_tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2010 20:33:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-07T20:33:51Z</dc:date>
    <item>
      <title>Create a false calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-false-calendar/m-p/204594#M61422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Der all,&lt;/P&gt;&lt;P&gt;I read in one of the forum topics that it is posible to create a false calendar and link data from an existing calendar, so dates without any data are shown in the graf.&lt;/P&gt;&lt;P&gt;Can somebody explain me how to create a false calendar and how to conect it to the other one. Thanks in advance.&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 20:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-false-calendar/m-p/204594#M61422</guid>
      <dc:creator />
      <dc:date>2010-01-07T20:01:37Z</dc:date>
    </item>
    <item>
      <title>Create a false calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-false-calendar/m-p/204595#M61423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like bellow. Just remember to change the charts so that zero-values are shown (on the Presentation tab).&lt;/P&gt;&lt;P&gt;// Some orders&lt;BR /&gt;DataTable:&lt;BR /&gt;LOAD OrderNo, date#(Date,'YYYY-MM-DD') as Date, Value INLINE [&lt;BR /&gt; OrderNo, Date, Value&lt;BR /&gt; 1, 2009-10-12, 27&lt;BR /&gt; 2, 2010-01-04, 37&lt;BR /&gt; 3, 2010-12-10, 34&lt;BR /&gt; 4, 2009-05-08, 82&lt;BR /&gt; 5, 2009-06-08, 18&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;// Find max and min dates&lt;BR /&gt;MaxMin:&lt;BR /&gt;Load&lt;BR /&gt; max(Date) as maxDate,&lt;BR /&gt; min(Date) as minDate&lt;BR /&gt;resident DataTable;&lt;BR /&gt;&lt;BR /&gt;// Put in variables&lt;BR /&gt;Let minDate = FieldValue( 'minDate', 1 );&lt;BR /&gt;Let maxDate = FieldValue( 'maxDate', 1 );&lt;BR /&gt;&lt;BR /&gt;// Create temp and calculate all dates between min and max&lt;BR /&gt;Calendar_tmp:&lt;BR /&gt;Load&lt;BR /&gt; date($(minDate)+RowNo()-1) as Date&lt;BR /&gt;autogenerate($(maxDate)-$(minDate)+1);&lt;BR /&gt;&lt;BR /&gt;// Calculate month, year, etc&lt;BR /&gt;Calendar:&lt;BR /&gt;Load&lt;BR /&gt; Date,&lt;BR /&gt; month(Date) as Month&lt;BR /&gt; // And so on...&lt;BR /&gt;resident Calendar_tmp;&lt;BR /&gt;drop table Calendar_tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 20:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-false-calendar/m-p/204595#M61423</guid>
      <dc:creator />
      <dc:date>2010-01-07T20:33:51Z</dc:date>
    </item>
  </channel>
</rss>

