<?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: Heat map - Length of Stay for 24 hr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894708#M311474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you work with &lt;STRONG&gt;timestamps &lt;/STRONG&gt;istead of working with time and dates separately?&lt;/P&gt;&lt;P&gt;If you change your IntervalMatch script a bit to work with timestamps the timeline would be interpreted as a single continuous entity and your problem will be resolved automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei Kaliahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 08:01:11 GMT</pubDate>
    <dc:creator>crusader_</dc:creator>
    <dc:date>2015-07-07T08:01:11Z</dc:date>
    <item>
      <title>Heat map - Length of Stay for 24 hr</title>
      <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894707#M311473</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;&lt;/P&gt;&lt;P&gt;For resource planning I have created a heat map showing the length of stay of a visiting person over a 24 hr period by day. For example if a person arrives at Mon 10 am and departs at Mon 2 pm I will get a flag of 1 for each hr from 10 am to 2 pm.&amp;nbsp; The question I have is how do I show a visit in the same 24 hr chart for a person that visited&amp;nbsp; on Mon at 11:45 pm and Departed the following day on&amp;nbsp; Tue&lt;/P&gt;&lt;P&gt;at 4 am.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached qvw works great for all people that arrived and left in the same 24 HR period. but I need a way to account for people that left the following day in the same chart for resource planning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working correctly with a 24 hr period&lt;/STRONG&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" width="735"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="32"&gt;Type&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="157"&gt;Arrival_Datetime&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="87"&gt;Arrival_Time&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="40"&gt;AHour&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="166"&gt;Depart_Datetime&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="78"&gt;Depart_Time&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="40"&gt;DHour&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="100"&gt;Occupancy_Hour&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="35"&gt;Visits&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Visit&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12/21/2011 1:40:01 AM&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;01:40:01&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12/21/2011 6:39:00 AM&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;06:39:00&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Visit&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12/31/2011 1:42:50 AM&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;01:42:50&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12/31/2011 2:40:00 AM&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;02:40:00&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 210px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="37"&gt;Day&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="41"&gt;HR&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="22"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Wed&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Sat&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Need help with More than 24 hr period&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1st visit&amp;nbsp; I would like a flag in 21 - 23 hrs and next day 0 - 1 hrs&lt;STRONG&gt; ( the next day flag needs to show in the same chart) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2nd visit I would like a flag in 21 - 23 hrs and next day 0 hrs&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 758px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="32"&gt;Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="143"&gt;Arrival_Datetime&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;Arrival_Time&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="45"&gt;AHour&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="198"&gt;Depart_Datetime&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="78"&gt;Depart_Time&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="40"&gt;DHour&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="100"&gt;Occupancy_Hour&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="35"&gt;Visits&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Visit&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1/2/2012 9:25:20 PM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;21:25:20&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;1/3/2012 1:07:00 AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01:07:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Visit&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1/7/2012 9:02:02 PM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;21:02:02&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;1/8/2012 12:47:00 AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;00:47:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 90px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="27"&gt;Day&lt;/TD&gt;&lt;TD class="xl64" width="41"&gt;HR&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="22"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Mon&lt;/TD&gt;&lt;TD class="xl67"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Sat&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the Qvw &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 23:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894707#M311473</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2015-07-06T23:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Heat map - Length of Stay for 24 hr</title>
      <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894708#M311474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you work with &lt;STRONG&gt;timestamps &lt;/STRONG&gt;istead of working with time and dates separately?&lt;/P&gt;&lt;P&gt;If you change your IntervalMatch script a bit to work with timestamps the timeline would be interpreted as a single continuous entity and your problem will be resolved automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei Kaliahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 08:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894708#M311474</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-07T08:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Heat map - Length of Stay for 24 hr</title>
      <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894709#M311475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I am not sure how it would work with time-stamp. Can you give me a quick example. The other issue I had when with using time-stamp is if I you a time-stamp events of 12:00, 1:00, 2:00 and I have an interval from 12:10 - 2:17 I will only get a match on 1:00 and 2:00 but not 12 some reason since it falls outside the range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 14:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894709#M311475</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2015-07-07T14:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Heat map - Length of Stay for 24 hr</title>
      <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894710#M311476</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;Please find attached my example.&lt;/P&gt;&lt;P&gt;Read script and comments carefully there are some useful tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have questions feel free to contact me.&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 08:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894710#M311476</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-08T08:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Heat map - Length of Stay for 24 hr</title>
      <link>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894711#M311477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrei - Sorry of the late response, this was a PERFECT example!!! I had initially tried to do it with timestamp but I did not think of converting to number. I also did not think of using the calendar gen to create the intervals. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Again, THANK YOU for taking the time to put this example together!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2015 02:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Heat-map-Length-of-Stay-for-24-hr/m-p/894711#M311477</guid>
      <dc:creator>regowins</dc:creator>
      <dc:date>2015-07-12T02:16:54Z</dc:date>
    </item>
  </channel>
</rss>

