<?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 Master calendar with hour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427367#M698227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using a master calendar on the basis of days. I want to have a finer granularity and be able to present aggr values on basis 'hour'.&lt;/P&gt;&lt;P&gt;A similar issue was already discussed here : &lt;A _jive_internal="true" href="https://community.qlik.com/message/106585#106585"&gt;http://community.qlik.com/message/106585#106585&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've already prepared is a timestamp in the correct format:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Timestamp&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;alt&lt;/SPAN&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: #800000; font-size: 8pt;"&gt;Schichtdatum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'#','.',','),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Timestamp#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Schichtdatum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'DD.MM.YYYY hh'))) &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;Schichtdatum_Stunde_alt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me a hint how to go on!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code im using to connect days:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MaxMinDate:&lt;/P&gt;&lt;P&gt;load &lt;BR /&gt; num(min(Schichtdatum)) as MinDate,&lt;BR /&gt; num(max(Schichtdatum)) as MaxDate&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;resident Auftragsdaten_BDE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let varMinDate = peek('MinDate');&lt;BR /&gt;let varMaxDate = peek('MaxDate');&lt;/P&gt;&lt;P&gt;Temp_Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;$(varMinDate) + RowNo() - 1 AS DateNumber,&amp;nbsp; &lt;BR /&gt;Date($(varMinDate) + RowNo() - 1) AS TempDate&amp;nbsp; &lt;BR /&gt;AUTOGENERATE 1&amp;nbsp; &lt;BR /&gt;WHILE $(varMinDate)+IterNo()-1 &amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD &lt;BR /&gt;date(TempDate, '$(DateFormat)') AS Schichtdatum,&lt;BR /&gt;date(TempDate, '$(DateFormat)') AS CalDate,&lt;BR /&gt;Weekday(TempDate) AS WeekDay,&lt;BR /&gt;Week(TempDate) AS Week,&lt;BR /&gt;Day(TempDate) AS Day,&lt;BR /&gt;Month(TempDate) AS Month,&lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;BR /&gt;Year(TempDate) AS Year,&lt;BR /&gt;Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS CWeekYear,&lt;BR /&gt;Date(monthstart(TempDate), 'MMM-YY') AS MonthYear,&lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3)&amp;amp;'-'&amp;amp;Year(TempDate) AS QuarterYear&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RESIDENT Temp_Calendar ORDER BY TempDate ASC;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp_Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 08:19:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-12T08:19:02Z</dc:date>
    <item>
      <title>Master calendar with hour</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427367#M698227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using a master calendar on the basis of days. I want to have a finer granularity and be able to present aggr values on basis 'hour'.&lt;/P&gt;&lt;P&gt;A similar issue was already discussed here : &lt;A _jive_internal="true" href="https://community.qlik.com/message/106585#106585"&gt;http://community.qlik.com/message/106585#106585&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've already prepared is a timestamp in the correct format:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Timestamp&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;alt&lt;/SPAN&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: #800000; font-size: 8pt;"&gt;Schichtdatum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'#','.',','),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Timestamp#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Schichtdatum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'DD.MM.YYYY hh'))) &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;Schichtdatum_Stunde_alt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me a hint how to go on!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code im using to connect days:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MaxMinDate:&lt;/P&gt;&lt;P&gt;load &lt;BR /&gt; num(min(Schichtdatum)) as MinDate,&lt;BR /&gt; num(max(Schichtdatum)) as MaxDate&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;resident Auftragsdaten_BDE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let varMinDate = peek('MinDate');&lt;BR /&gt;let varMaxDate = peek('MaxDate');&lt;/P&gt;&lt;P&gt;Temp_Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;$(varMinDate) + RowNo() - 1 AS DateNumber,&amp;nbsp; &lt;BR /&gt;Date($(varMinDate) + RowNo() - 1) AS TempDate&amp;nbsp; &lt;BR /&gt;AUTOGENERATE 1&amp;nbsp; &lt;BR /&gt;WHILE $(varMinDate)+IterNo()-1 &amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD &lt;BR /&gt;date(TempDate, '$(DateFormat)') AS Schichtdatum,&lt;BR /&gt;date(TempDate, '$(DateFormat)') AS CalDate,&lt;BR /&gt;Weekday(TempDate) AS WeekDay,&lt;BR /&gt;Week(TempDate) AS Week,&lt;BR /&gt;Day(TempDate) AS Day,&lt;BR /&gt;Month(TempDate) AS Month,&lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;BR /&gt;Year(TempDate) AS Year,&lt;BR /&gt;Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS CWeekYear,&lt;BR /&gt;Date(monthstart(TempDate), 'MMM-YY') AS MonthYear,&lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3)&amp;amp;'-'&amp;amp;Year(TempDate) AS QuarterYear&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RESIDENT Temp_Calendar ORDER BY TempDate ASC;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp_Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427367#M698227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-12T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar with hour</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427368#M698228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chesterluck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the referenced thread should already give you an idea of how to do this, just replace the magic numbers for seconds (24*60*60 resp 24/60/60) with the magic number for hours (24) in a day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, when comparing floating point numbers (that's what you want to do when linking your hour based calendar to your timestamp), make sure that both numbers are created / rounded the same way. Please check&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://qlikviewnotes.blogspot.de/2011/10/correct-time-arithmetic.html" title="http://qlikviewnotes.blogspot.de/2011/10/correct-time-arithmetic.html"&gt;http://qlikviewnotes.blogspot.de/2011/10/correct-time-arithmetic.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 09:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427368#M698228</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-12T09:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar with hour</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427369#M698229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to create your calendar it is better to use numeric format than date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today is day 41317. Tomorrow will be 41318. It means that 1 hour = 1/24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your Autogenerate should be [ ($(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;varMaxDate) - $(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;varMinDate) + 1)*24 ] =&amp;gt; number of hours between this two dates.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Then, instead of adding only =&amp;gt; "&lt;SPAN style="color: #737373; font-family: Arial; font-size: 13px; background-color: #ffffff;"&gt;+ RowNo()&lt;/SPAN&gt;" you should add =&amp;gt; "&lt;SPAN style="color: #737373; font-family: Arial; font-size: 13px; background-color: #ffffff;"&gt;+ RowNo()&lt;/SPAN&gt;/24".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 09:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427369#M698229</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-02-12T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar with hour</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427370#M698230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this solves your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes kindly close the post by marking it answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 14:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-with-hour/m-p/427370#M698230</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-02-18T14:14:59Z</dc:date>
    </item>
  </channel>
</rss>

