<?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: Reference DateTime for calculating occupancy in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282206#M401972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that multiple lines represent reference timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 702px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" width="242"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-left: none;" width="138"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-left: none;" width="130"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-left: none;" width="192"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" style="border-top: none;"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;01/02/2017 12:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" style="border-top: none;"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;01/02/2017 13:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 14:24:15 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2017-02-02T14:24:15Z</dc:date>
    <item>
      <title>Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282204#M401970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to analyze occupancy percent&amp;nbsp; of a parking lot .&lt;/P&gt;&lt;P&gt;My data include entrance and exit timestamps of cars.&lt;/P&gt;&lt;P&gt;I generated reference timestamps for each hour in the range.&lt;/P&gt;&lt;P&gt;My question is which is the best time resolution (i.e., hour, half an hour..) to analyze the occupancy?&lt;/P&gt;&lt;P&gt;This is due to the fact that the entry and exit times can vary, and I'm not sure how should I round them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider such cases:&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white; border: outset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;Receipt_EntryDateTime &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;Receipt_ExitDateTime &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;04/03/2016 11:35:00 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;04/03/2016 12:33:00 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white; border: outset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;Receipt_EntryDateTime &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;Receipt_ExitDateTime &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;06/04/2016 11:43:00 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: inset silver 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #363636;"&gt;06/04/2016 12:27:00 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282204#M401970</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-02T13:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282205#M401971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide more information(Sample data &amp;amp; app) about your scenario &amp;amp; problem to get clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282205#M401971</guid>
      <dc:creator>ganeshsvm</dc:creator>
      <dc:date>2017-02-02T13:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282206#M401972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that multiple lines represent reference timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 702px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" width="242"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-left: none;" width="138"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-left: none;" width="130"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-left: none;" width="192"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" style="border-top: none;"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;01/02/2017 12:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl63" height="17" style="border-top: none;"&gt;16_6581&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 11:18:00&lt;/TD&gt;&lt;TD align="left" class="xl63" style="border-top: none; border-left: none;"&gt;01/02/2017 13:22:00&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;01/02/2017 13:18:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282206#M401972</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-02T14:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282207#M401973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dafinis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to be cetain to have all variations of occupancy including max and min value, you need to have a s&lt;SPAN lang="en"&gt;ampling frequency 2 times higher than your max frequency &lt;A href="https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem"&gt;&lt;SPAN style="color: #1a0dab;"&gt;Nyquist–Shannon sampling theorem &lt;/SPAN&gt;&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;In your case, you could identify change (entry and exit) each full minute. If you sample your data each minutes based on 30 secondes (...&amp;nbsp; -&amp;nbsp; 10:58:30&amp;nbsp; -&amp;nbsp; 10:59:30&amp;nbsp; -&amp;nbsp; 11:00:30&amp;nbsp; -&amp;nbsp; 11:01:30&amp;nbsp; -&amp;nbsp; ... )&amp;nbsp; you will have all variations. If you want to have less data, you could aggregate your sampling result by hour and take only the min, the max and average value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282207#M401973</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2017-02-02T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282208#M401974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a hunch that this isn't a case for mere mortals &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the idea of generating reference timestamps is not relevant for such a case?&lt;/P&gt;&lt;P&gt;I still can't figure how should i generate the timestamps to check the cars inside.&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, 02 Feb 2017 16:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282208#M401974</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-02T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282209#M401975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Community_248464.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151775_Community_248464.png" style="width: 620px; height: 317px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&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;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='DD/MM/YYYY';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&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;TimestampFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='DD/MM/YYYY hh:mm:ss[.fff]';&lt;BR /&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;vMinDate&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;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('31/01/2017', 'DD/MM/YYYY'));&amp;nbsp; &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;vMaxDate&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;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('02/02/2017', 'DD/MM/YYYY'));&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; SampleCalendarTemp:&amp;nbsp; &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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMinDate)&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;RecNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1)/60/24 + 30/60/60/24) + (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&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;AddedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Use this one as date&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMinDate)&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;RecNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1)/60/24 + 30/60/60/24) + (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&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;AddedTimeStamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &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; 1440 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WHILE&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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMinDate)&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;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() -1) &amp;lt;= &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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; SampleCalendar:&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;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AddedTimeStamp&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;MyTimeStamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AddedDate&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;myDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AddedTimeStamp&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;MyHour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AddedTimeStamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'hh:mm:ss') &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;MyTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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; SampleCalendarTemp;&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; SampleCalendarTemp;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; RawData:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Directory&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Receipt_Key_SiteID_ReceiptNumerator&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Receipt_EntryDateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Receipt_ExitDateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sample data.xls]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&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; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1$);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(RawData)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MyTimeStamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Receipt_EntryDateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Receipt_ExitDateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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; RawData; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282209#M401975</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2017-02-02T17:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282210#M401976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a true masterpiece!&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I wasn't in the right direction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to inquire about something that bothered me while using whole hours&lt;/P&gt;&lt;P&gt;Please note that parking that starts near the end of an hour (10:53) is considered as a whole hour (10) &lt;/P&gt;&lt;P&gt;How do such cases impact the results? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="parking_16_6578.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151791_parking_16_6578.png" style="height: 234px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 19:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282210#M401976</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-02T19:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282211#M401977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using some dynamic bin sizes / time intervals, your users might as well select the required time resolution on their own:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151819_QlikCommunity_Thread_248464_Pic1.JPG" style="height: 296px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151826_QlikCommunity_Thread_248464_Pic2.JPG" style="height: 302px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/151827_QlikCommunity_Thread_248464_Pic3.JPG" style="height: 299px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/151828_QlikCommunity_Thread_248464_Pic4.JPG" style="height: 299px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/151829_QlikCommunity_Thread_248464_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14860786086917706 jive_text_macro" jivemacro_uid="_14860786086917706"&gt;
&lt;P&gt;tabParking:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_Key_SiteID_ReceiptNumerator, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_EntryDateTime, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_ExitDateTime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="263727" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2051-248464-1205140-263727/Sample+data.xls"&gt;https://community.qlik.com/servlet/JiveServlet/download/1205140-263727/Sample%20data.xls&lt;/A&gt;&lt;SPAN&gt;] (biff, embedded labels, table is Sheet1$);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabCalendar:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Minute(DateTime) as Minute,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour(DateTime) as Hour,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Frac(DateTime)) as Time,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(DateTime) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(DateTime) as Day,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(DateTime) as WeekDay,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(DateTime) as Week,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(DateTime) as WeekName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(DateTime) as Month,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(DateTime) as MonthName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(DateTime)/3),Ceil(Month(DateTime)/3)) as Quarter,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(DateTime) as QuarterName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(DateTime) as Year,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(DateTime) as WeekYear;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Timestamp#(Timestamp(MinDateTime+(IterNo()-1)*'00:01')) as DateTime&amp;nbsp; &lt;/P&gt;
&lt;P&gt;While MinDateTime+(IterNo()-1)*'00:01' &amp;lt;= MaxDateTime;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Min(Receipt_EntryDateTime) as MinDateTime,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Receipt_ExitDateTime) as MaxDateTime&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Resident tabParking;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDateLink:&lt;/P&gt;
&lt;P&gt;IntervalMatch (DateTime)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_EntryDateTime, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_ExitDateTime&lt;/P&gt;
&lt;P&gt;Resident tabParking;&lt;/P&gt;
&lt;P&gt;Left Join (tabDateLink)&lt;/P&gt;
&lt;P&gt;LOAD Receipt_Key_SiteID_ReceiptNumerator, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_EntryDateTime, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Receipt_ExitDateTime&lt;/P&gt;
&lt;P&gt;Resident tabParking;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Fields Receipt_EntryDateTime, Receipt_ExitDateTime From tabDateLink;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 23:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282211#M401977</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-02T23:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282212#M401978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for helping!&lt;/P&gt;&lt;P&gt;I would appreciate if you kindly check a specific issue:&lt;/P&gt;&lt;P&gt;When a parking starts on one day, and ends on another day (17_30898), the hours are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 04:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282212#M401978</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-03T04:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282213#M401979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking further, the idea is that the user will select a certain weekday date.&lt;/P&gt;&lt;P&gt;In such a case, your solution is perfect for me.&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 05:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282213#M401979</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-03T05:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282214#M401980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found just a little problem, but I found the solution too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you consider only one receiptKey (that start en end in the same day) with a BinSize 00:15 like that, the first bar is not correct :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community_1205340_2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151850_Community_1205340_2.png" style="width: 620px; height: 136px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community_1205340_3.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151851_Community_1205340_3.png" style="width: 620px; height: 57px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community_1205340_4.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/151852_Community_1205340_4.png" style="width: 620px; height: 231px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The reason&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is due to the expression of the calculated dimension :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Time&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;vBinSize&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'hh:mm') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value used as a step by the floor function is not a finite value (00:15 ==&amp;gt; 0.010416666666666666666 ...), but since it is the finite value 0.010416666666667 that is actually used, there is in the end A slight offset that causes the problem found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We need to work with minute in this expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*60+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Minute&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hour&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;vBinSize&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*60+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Minute&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;vBinSize&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/24/60,'hh:mm') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like that the step is a finite value 15&amp;nbsp; and we have a correct result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Community_1205340_5.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/151853_Community_1205340_5.png" style="width: 620px; height: 231px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282214#M401980</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2017-02-03T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282215#M401981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, due to the limited resolution of the underlying numerical values, time arithmetics may show this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution might be:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14861608988812021 jive_text_macro" jivemacro_uid="_14861608988812021"&gt;
&lt;P&gt;=Time(Floor(Time,Time#(Time(vBinSize,'hh:mm'),'hh:mm')),'hh:mm')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248464_Pic6.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151977_QlikCommunity_Thread_248464_Pic6.JPG" style="height: 237px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2011/10/correct-time-arithmetic/" title="http://qlikviewcookbook.com/2011/10/correct-time-arithmetic/"&gt;Correct Time Arithmetic | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 22:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282215#M401981</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-03T22:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282216#M401982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2017 06:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282216#M401982</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-02-04T06:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reference DateTime for calculating occupancy</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282217#M401983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2017 08:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-DateTime-for-calculating-occupancy/m-p/1282217#M401983</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-04T08:07:30Z</dc:date>
    </item>
  </channel>
</rss>

