<?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 To create a Calendar for a Given Max &amp; Min Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701851#M1084466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I have Max_Date 30/06/2006 as Min_Date 08/12/2005&lt;/P&gt;&lt;P&gt;now my task is to create all dates between these dates.. Please help me out if anyone has any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more thing how I add these dates as calendar object on the dashboard like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60812_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 10:20:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-18T10:20:04Z</dc:date>
    <item>
      <title>To create a Calendar for a Given Max &amp; Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701851#M1084466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I have Max_Date 30/06/2006 as Min_Date 08/12/2005&lt;/P&gt;&lt;P&gt;now my task is to create all dates between these dates.. Please help me out if anyone has any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more thing how I add these dates as calendar object on the dashboard like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60812_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701851#M1084466</guid>
      <dc:creator />
      <dc:date>2014-06-18T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: To create a Calendar for a Given Max &amp; Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701852#M1084467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(Date('08/12/2005','DD/MM/YYYY')) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(Date('30/06/2006','DD/MM/YYYY')) as MaxDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = NUM(PEEK('MinDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = NUM(PEEK('MaxDate',0,'MinMaxDate'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(DateNum) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(DateNum) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(DateNum) as Year;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMinDate) + IterNo() - 1 as DateNum&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While $(vMinDate) + IterNo() - 1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a slider/Calendar object with Input Style is Calendar and Field is Date as below&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60807_Untitled.png" style="width: 620px; height: 287px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701852#M1084467</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-18T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: To create a Calendar for a Given Max &amp; Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701853#M1084468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48693"&gt;Creating A Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701853#M1084468</guid>
      <dc:creator />
      <dc:date>2014-06-18T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: To create a Calendar for a Given Max &amp; Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701854#M1084469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In many cases it would be weird to use existing max and min dates for the calendars.&amp;nbsp; Calendars are better to start from the beginning of a year and end at the end of the year.&amp;nbsp; So, a more natural approach is to use the year start of the min date as calendar start, and year end of the max date as the calendar end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 10:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701854#M1084469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-18T10:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: To create a Calendar for a Given Max &amp; Min Date</title>
      <link>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701855#M1084470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to create a master calendar in the data model see the script below but if you need for particular dates then change the max min variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(YearStart(Today()));&lt;/P&gt;&lt;P&gt;Let varMaxDate = Num(YearEnd(Today()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Let varMinDate = NUM(Date#('08/12/2005','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;//Let varMaxDate = NUM(Date#('30/06/2006','DD/MM/YYYY'));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;TempDateTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;date($(varMinDate)+IterNo()-1) AS TempDatefield&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;WHILE $(varMinDate)+IterNo()-1&amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TempDatefield,&lt;/P&gt;&lt;P&gt;Month(Floor(TempDatefield)) AS Floordate,&lt;/P&gt;&lt;P&gt;Year(date(TempDatefield)) as Year,&lt;/P&gt;&lt;P&gt;Month(date(TempDatefield)) as Month,&lt;/P&gt;&lt;P&gt;Day(date(TempDatefield)) as Day,&lt;/P&gt;&lt;P&gt;Time(date(TempDatefield)) as Time&lt;/P&gt;&lt;P&gt;Resident TempDateTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TempDateTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-create-a-Calendar-for-a-Given-Max-Min-Date/m-p/701855#M1084470</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-18T11:27:30Z</dc:date>
    </item>
  </channel>
</rss>

