<?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 calendar with hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169952#M40554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rainer,&lt;/P&gt;&lt;P&gt;thanks for the suggestion.&lt;/P&gt;&lt;P&gt;I've tried your suggestion, but run into a situation where millions of lines are created in the calendar but there is only 75 000 records in my fact table.&lt;/P&gt;&lt;P&gt;Any other suggestion or maybe I did something incorrect in using my max date for the ($vSteps)&lt;/P&gt;&lt;P&gt;ps. the code snippet does work if I use trunc(changedate) when I extract the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jan 2011 13:51:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-14T13:51:37Z</dc:date>
    <item>
      <title>calendar with hours</title>
      <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169950#M40552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create a calendar with hours but unfortunately my script fails in the creation of the temp table.&lt;/P&gt;&lt;P&gt;I've tried a variety of formats but nothing seems to work. Any suggestions?&lt;/P&gt;&lt;P&gt;tmpMinMax:&lt;BR /&gt;LOAD&lt;BR /&gt; timestamp(min(THEDATE),'DD/MM/YYYY hh:mm:ss') as MIN,&lt;BR /&gt; timestamp(max(THEDATE),'DD/MM/YYYY hh:mm:ss') as MAX&lt;BR /&gt;RESIDENT FACTS;&lt;BR /&gt;&lt;BR /&gt;LET vMinDate = num(peek( 'MIN', 0, 'tmpMinMax'));&lt;BR /&gt;LET vMaxDate = num(peek( 'MAX', 0, 'tmpMinMax'));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD&lt;BR /&gt; TIMESTAMP(($(vMinDate) + rowno() -1),'DD/MM/YYYY hh:mm:ss') as Date&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE ($(vMinDate)+IterNo()-1) &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 11:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169950#M40552</guid>
      <dc:creator />
      <dc:date>2011-01-14T11:34:44Z</dc:date>
    </item>
    <item>
      <title>calendar with hours</title>
      <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169951#M40553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can not use AUTOGENERATE together with WHILE!!!&lt;/P&gt;&lt;P&gt;Here are an example using WHILE and ITERNO():&lt;/P&gt;&lt;P&gt;Load Distinct&lt;BR /&gt; Item_number, //*** We need the "Item_Number" to get a complete calendar for each item&lt;BR /&gt; Date($(vMinDate) + Iterno() -1) as Transaction_date&lt;BR /&gt;Resident Suplier_1&lt;BR /&gt;While Iterno() &amp;lt;= $(vSteps)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 12:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169951#M40553</guid>
      <dc:creator />
      <dc:date>2011-01-14T12:20:19Z</dc:date>
    </item>
    <item>
      <title>calendar with hours</title>
      <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169952#M40554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rainer,&lt;/P&gt;&lt;P&gt;thanks for the suggestion.&lt;/P&gt;&lt;P&gt;I've tried your suggestion, but run into a situation where millions of lines are created in the calendar but there is only 75 000 records in my fact table.&lt;/P&gt;&lt;P&gt;Any other suggestion or maybe I did something incorrect in using my max date for the ($vSteps)&lt;/P&gt;&lt;P&gt;ps. the code snippet does work if I use trunc(changedate) when I extract the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 13:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169952#M40554</guid>
      <dc:creator />
      <dc:date>2011-01-14T13:51:37Z</dc:date>
    </item>
    <item>
      <title>calendar with hours</title>
      <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169953#M40555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the amount of records depends on the number of ITEMS you have and not which kind of method (Autogenerate or WHILE) you use.&lt;/P&gt;&lt;P&gt;Without the additional field ITEMNUMBER i´m sure you will get the number of records you expect.&lt;/P&gt;&lt;P&gt;See the attached example for more information.&lt;/P&gt;&lt;P&gt;God luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 14:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169953#M40555</guid>
      <dc:creator />
      <dc:date>2011-01-14T14:23:35Z</dc:date>
    </item>
    <item>
      <title>calendar with hours</title>
      <link>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169954#M40556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah-ha!!&lt;/P&gt;&lt;P&gt;Thanks! works very well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 15:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calendar-with-hours/m-p/169954#M40556</guid>
      <dc:creator />
      <dc:date>2011-01-14T15:30:55Z</dc:date>
    </item>
  </channel>
</rss>

