<?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 Re: How to create time dimension and link to master calender in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449350#M167694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, there are lot of dicussions are around Master Calender but not on time dimension and link the time dimension to master calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 15:37:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-27T15:37:15Z</dc:date>
    <item>
      <title>How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449348#M167692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create a time dimension and link to master calender. I'm welcome your ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 12:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449348#M167692</guid>
      <dc:creator />
      <dc:date>2012-09-27T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449349#M167693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are tons of threads here in the forum that discusses the concept of a master calendar, also lots of sample app to create such a master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/qlikviews/http://community.qlik.com/qlikviews/1001" title="http://community.qlik.com/qlikviews/1001"&gt;http://community.qlik.com/qlikviews/1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but just search the forum 'master calendar' for more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the only problem should be to link your field to the master calendar. QV will link fields with same name.&lt;/P&gt;&lt;P&gt;Just take care that an actual link will only happen to records in the two tables where key field values are equal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 14:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449349#M167693</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-27T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449350#M167694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, there are lot of dicussions are around Master Calender but not on time dimension and link the time dimension to master calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449350#M167694</guid>
      <dc:creator />
      <dc:date>2012-09-27T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449351#M167695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As said, links will be created by equality of field values. So, to succesfully link a time dimension to a master calendar that is based on dates, you need to strip of your time part from your time dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATETIME,&lt;/P&gt;&lt;P&gt;Daystart(DATETIME) as DATE&lt;/P&gt;&lt;P&gt;FROM YOURTABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;MONTH,&lt;/P&gt;&lt;P&gt;YEAR&lt;/P&gt;&lt;P&gt;FROM MASTERCAL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449351#M167695</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-27T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449352#M167696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not understand where are you linking your master calender to time dimention. I have successfully created master calender but I'm having difficulty in create a time dimension and link to master calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 13:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449352#M167696</guid>
      <dc:creator />
      <dc:date>2012-10-02T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449353#M167697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date:&lt;BR /&gt;LOAD&lt;BR /&gt;today()-recno()+1 as Date&lt;BR /&gt;autogenerate(today()-'2009-01-01');&amp;nbsp;&amp;nbsp;&amp;nbsp; //you can choose here how far you wish to go back by setting appropriate date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateParts:&lt;BR /&gt;LOAD&lt;BR /&gt;Date as invoice_date,&lt;BR /&gt;Date as Date,&lt;BR /&gt;Year(Date) as Year,&lt;BR /&gt;yearname (Date, 0, 4 )&amp;nbsp;&amp;nbsp; as FinancialYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Date) as Month,&lt;BR /&gt;Day(Date) as Day,&lt;BR /&gt;Week(Date) as Week,&lt;BR /&gt;Weekday(Date) as WeekDay,&lt;BR /&gt;MonthName(Date) as monthYear&lt;BR /&gt;RESIDENT Date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449353#M167697</guid>
      <dc:creator />
      <dc:date>2012-10-02T14:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449354#M167698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is established by DATE field. Probably I am still missing your issue. Could you post your script code or a small sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449354#M167698</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-02T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449355#M167699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PurnaC10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also like an example app that illustrates your problem, and/or the description of the problem you're solving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can imagine you just need a time dimension next to your mastercalendar. In that way the Date dimension (mastercalendar) and your timedimension (new dimension) are not related to eachother but they are both related to your fact-table. This would require a time-field in your facttable that links to the time-field in your time-dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the mastercalendar and time-dimension must be related, I think your mastercalendar will have quite a lot of records (depending on the granularity). What is your granularity? Is data viewed per hour? Per minute? Per second? &lt;/P&gt;&lt;P&gt;--&amp;gt; There may be a good reason for it... Lets have a look at your example app or further description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#edit: I saw this topic (&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/24869"&gt;http://community.qlik.com/thread/24869&lt;/A&gt;) with a clear example with timestamp included in the mastercalendar (so apparently it is not that strange to do...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449355#M167699</guid>
      <dc:creator />
      <dc:date>2012-10-02T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449356#M167700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is my application and I have been trying to achieve &lt;/P&gt;&lt;P&gt;1. Create Master Calender and Tie with Time with granularity&amp;nbsp; of 15 min interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Quarter, Month, Week, Day, Hour, Min (15,30,45,60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm seeing a link between the tables with link table. but some how&amp;nbsp; location and master calender values are not linking on sheet. If I select location both charts (Mech Stats and DB Sessions) are showing valus. then if I select date or month or quarter or year, selection box not keeping multiple selection. &lt;/P&gt;&lt;P&gt;I would like to know why data not connectiong as shown in table layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 16:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449356#M167700</guid>
      <dc:creator />
      <dc:date>2012-10-04T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449357#M167701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are trying to link a field with text values only (DTTM field in table LinkTable) with a field with a QV timestamp (DTTM field in table Calendar). I believe QV will try to match the numerical value of the timestamp with the text value, which will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using same format in both fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 16:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449357#M167701</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-04T16:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449358#M167702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think, if you look all the places I'm using MM/DD/YYYY HH:MI format. Second thing whey Location data has not link with caledner. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449358#M167702</guid>
      <dc:creator />
      <dc:date>2012-10-04T17:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449359#M167703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think swuehl is right: the link between the calendar and linktable is not right because the field DTTM is interpreted as text, and they have a different format (one with seconds and one without).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the attached ZIP file helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you extract the 2 .qvw's in the same folder, the reload will work (I'm using binary load of the original qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In newVersion.qvw you can see that it is needed to "parse" the DTTM field (with timestamp#() and timestamp() functions.&lt;/P&gt;&lt;P&gt;I saw that this was needed, because in the old .qvw, it is visible that those fields were NOT timestamps. In the new .qvw they are (see the screenshot in the zip-file: it has a tag like timestamp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This file helps you to make the link from calender to the linktable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you can make the other changes yourself to tweak the calendar (I think now for every minute there is a record instead of per 15 minutes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 10:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449359#M167703</guid>
      <dc:creator />
      <dc:date>2012-10-05T10:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449360#M167704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys for your help. Its good information to know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 01:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449360#M167704</guid>
      <dc:creator />
      <dc:date>2012-10-07T01:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449361#M167705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am using the below script for my master calender. I have date field name as&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; '[Settled Date]&lt;/STRONG&gt;&lt;STRONG&gt;' &lt;/STRONG&gt;&lt;/SPAN&gt;in my data source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But i am getting the error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;(Script line error: &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;DataField: &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;LOAD &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date (+ rowno()-1) as TempDate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;AUTOGENERATE&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt;-+1). &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can any one help me? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// **************** Creating the Calendar *************&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('OrderDate', 0, 'Orders'));&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('OrderDate', -1, 'Orders'));&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varToday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;());&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// **************** Creating the Calendar Comment*************&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;DateField:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() -1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;- &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;+1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// ****************Creating the Master Calendar************&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;MasterCalendar:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Weekday&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; 'Q' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / 3) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) , 'MMM_YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;'-'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WeekYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inyeartodate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0) * -1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CurYTDFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inyeartodate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -1) * -1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LastYTDFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; DateField &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ASC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; DateField; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 10:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449361#M167705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-14T10:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449362#M167706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Considered your error-message, I think the cause is that $(varMinDate) is not (correctly) evaluated as a date (but as a null or empty string instead).&amp;nbsp; So the line below that I copied from your code is incorrect.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;() -1) &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;TempDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That varMinDate is filled with this line of code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;varMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;('OrderDate', 0, 'Orders'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;/P&gt;&lt;P&gt;question 1: does your Orders table have a valid OrderDate column?&lt;/P&gt;&lt;P&gt;question 2: (if answer on question 1 is 'yes'): after reload (or loading the let varMinDate) please check in the variables overview the value of varMinDate... It should be a valid date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Edit: since you're asking a new question, I suggest you open a new thread and refer to this discussion (with a link or something). This question is answered already. When you've done that, you could paste the link of that new topic here...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449362#M167706</guid>
      <dc:creator />
      <dc:date>2013-01-14T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time dimension and link to master calender</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449363#M167707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted it in a sep que as "Error in aster Calender Script"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Que1:Its not order table. Its "Settled Date" table and this has the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 09:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-dimension-and-link-to-master-calender/m-p/449363#M167707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-15T09:53:18Z</dc:date>
    </item>
  </channel>
</rss>

