<?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: Add time calendar to master calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610333#M445079</link>
    <description>&lt;P&gt;A master-calendar may be depending on the available dates from the fact-table but a master time-table is usually independent from it and could be created with something like:&lt;/P&gt;&lt;P&gt;TimeTable:&lt;BR /&gt;load *, hour(Time) as Hour, minute(Time) as Minute;&lt;BR /&gt;load time(recno() / 24/60/60) as Time autogenerate 86400;&lt;/P&gt;&lt;P&gt;You may need some kind of rounding - with floor/ceil - within the TimeTable and your fact-table to ensure that both values really match because Qlik used a binary number-system which didn't always match to a decimal-system.&lt;/P&gt;&lt;P&gt;This means further that you split the timestamp into a date- and a time-field to connect both dimension-tables with the fact-table.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 15:36:57 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-08-07T15:36:57Z</dc:date>
    <item>
      <title>Add time calendar to master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1609834#M445048</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to add a time calendar to an existing QV document to allow people to filter on hours and minutes.&lt;/P&gt;&lt;P&gt;I found this subject :&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392#comment-13766" target="_self"&gt;The Master Time Calendar&lt;/A&gt;&amp;nbsp;but I have a problem when I try to create the time calendar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my master calendar I use this&amp;nbsp; script which works correctly for me:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;varMinDate = num(date('2019-01-01 00:00','YYYY-MM-DD hh:mm'));
varMaxDate = num(date(today(),'YYYY-MM-DD hh:mm'));

// Creating a Temporary Calendar
TempCalendar:  
    LOAD  
       Date($(varMinDate) + IterNo() - 1) 	as TempDate  
       AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);  
   
MasterCalendar:  
Load               
date(TempDate,'DD/MM/YYYY')	as Date,	
day(TempDate) 			as Day,
year(TempDate) 			as Year,
Ceil(Month(TempDate)/3)		as QuarterNumber,
month(TempDate) 		as Month,                   
week(TempDate) 			as Week                
Resident TempCalendar  
Order By TempDate ASC;  
Drop Table 	TempCalendar; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I tried to modify it for my time calendar :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TempCalendarTime:
	LOAD  
       Time($(varMinDate)/24/60) 	as TempDate  
       AutoGenerate 1440 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);

TIMECALENDAR:
LOAD
date(TempDate,'DD/MM/YYYY')	as Date,
Hour(TempDate)			as Hour,
Minute(TempDate)		as Minute
RESIDENT TempCalendarTime
Order By TempDate ASC;
DROP TABLE TempCalendarTime;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But I only get 0 as hour and minute I and really don't understand why..&lt;/P&gt;&lt;P&gt;I hope I'm clear enough.&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 13:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1609834#M445048</guid>
      <dc:creator>GuillaumeRUE</dc:creator>
      <dc:date>2019-08-06T13:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add time calendar to master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610239#M445067</link>
      <description>&lt;P&gt;Why did you want to create to 2 separated tables for dates and times.&lt;/P&gt;&lt;P&gt;To be honest, I don't like your table&amp;nbsp;&lt;SPAN&gt;TIMECALENDAR&lt;FONT face="&amp;quot;source_sans_proregular&amp;quot;,Arial,sans-serif"&gt;, because you will have 24 * 356 rows in this table per 1 year&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610239#M445067</guid>
      <dc:creator>Nadi_Clarke</dc:creator>
      <dc:date>2019-08-07T11:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add time calendar to master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610242#M445068</link>
      <description>&lt;P&gt;At this moment, I can filter my data thanks to a Date (Year, month, day) but I get timestamps from DB and I would like to filter data with the time too (hour, minute, seconds if it's not too big).&lt;/P&gt;&lt;P&gt;So I tried to create a time table as I saw in the article I linked in the post to do it. But maybe only one calendar with date and time is enough?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610242#M445068</guid>
      <dc:creator>GuillaumeRUE</dc:creator>
      <dc:date>2019-08-07T11:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add time calendar to master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610333#M445079</link>
      <description>&lt;P&gt;A master-calendar may be depending on the available dates from the fact-table but a master time-table is usually independent from it and could be created with something like:&lt;/P&gt;&lt;P&gt;TimeTable:&lt;BR /&gt;load *, hour(Time) as Hour, minute(Time) as Minute;&lt;BR /&gt;load time(recno() / 24/60/60) as Time autogenerate 86400;&lt;/P&gt;&lt;P&gt;You may need some kind of rounding - with floor/ceil - within the TimeTable and your fact-table to ensure that both values really match because Qlik used a binary number-system which didn't always match to a decimal-system.&lt;/P&gt;&lt;P&gt;This means further that you split the timestamp into a date- and a time-field to connect both dimension-tables with the fact-table.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1610333#M445079</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-07T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add time calendar to master calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1616618#M445480</link>
      <description>&lt;P&gt;You found the Master Calendar post, but you missed this one, which I suspect is the one you wanted, and Marcus' comment was trying to point you here as well I believe, hopefully this may do the trick.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Time-Table/ba-p/1469392&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-time-calendar-to-master-calendar/m-p/1616618#M445480</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-26T13:29:39Z</dc:date>
    </item>
  </channel>
</rss>

