<?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 Utilization / Hour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425821#M158615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar that includes hours, and now I need to measure utilization of repair bays over those hours.&amp;nbsp; For example, in one facility we have three repair bays with repairs ranging from 30 minutes to 5 hours.&amp;nbsp; I want to see how many minutes / hour are used by the 3 bays over 24 hours (i.e. if all three bays are used for that hour then they would receive 180 minutes of use for that hour).&amp;nbsp; The times for the repair bay usage are timestamps for start and end times with no further delineation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't stumbled upon anything else that seems to explain this so any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Austin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 May 2013 02:25:48 GMT</pubDate>
    <dc:creator>montgomery7aust</dc:creator>
    <dc:date>2013-05-04T02:25:48Z</dc:date>
    <item>
      <title>Utilization / Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425821#M158615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar that includes hours, and now I need to measure utilization of repair bays over those hours.&amp;nbsp; For example, in one facility we have three repair bays with repairs ranging from 30 minutes to 5 hours.&amp;nbsp; I want to see how many minutes / hour are used by the 3 bays over 24 hours (i.e. if all three bays are used for that hour then they would receive 180 minutes of use for that hour).&amp;nbsp; The times for the repair bay usage are timestamps for start and end times with no further delineation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't stumbled upon anything else that seems to explain this so any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Austin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2013 02:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425821#M158615</guid>
      <dc:creator>montgomery7aust</dc:creator>
      <dc:date>2013-05-04T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Utilization / Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425822#M158616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems quite similar to the problem discussed &lt;A _jive_internal="true" href="https://community.qlik.com/thread/38841?start=0&amp;amp;tstart=0"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2013 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425822#M158616</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-04T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Utilization / Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425823#M158617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does help a lot, thank you.&amp;nbsp; However, It looks like they are just counting the number of people in a given hour and I'd like to take it one-step further in granularity.&amp;nbsp; If a bay is used for only twenty-three minutes of the hour, and the other two are utilized for the entire hour, how would I generate a utilization of 143 minutes across the three bays for that hour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I'm struggling most bucketing my bay utilization into minutes / bay / hour of day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2013 19:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425823#M158617</guid>
      <dc:creator>montgomery7aust</dc:creator>
      <dc:date>2013-05-04T19:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Utilization / Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425824#M158618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then it would be probably better to do it like this (the timestamp DT here describes the interval of the timestamp till timestamp + 1h):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD *, recno() as ID INLINE [&lt;/P&gt;&lt;P&gt;DT1, DT2&lt;/P&gt;&lt;P&gt;8/9/12 11:08 AM,8/9/12 2:57 PM&lt;/P&gt;&lt;P&gt;8/9/12 12:20 PM,8/10/12 01:13 AM&lt;/P&gt;&lt;P&gt;8/9/12 09:20 PM,8/10/12 12:13 AM&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;timestamp#(timestamp((floor(DT1*24)+iterno()-1)/24)) as DT,&lt;/P&gt;&lt;P&gt;if(iterno()=1, DT1, timestamp#(timestamp((floor(DT1*24)+iterno()-1)/24))) as Start,&lt;/P&gt;&lt;P&gt;if(floor(DT1*24)+iterno()-1=floor(DT2*24), DT2,&amp;nbsp; timestamp#(timestamp((floor(DT1*24)+iterno())/24))) as End&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;while floor(DT2*24) &amp;gt;= floor(DT1*24)+iterno()-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (INPUT)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;DT,&lt;/P&gt;&lt;P&gt;interval((End-Start)) as Duration&lt;/P&gt;&lt;P&gt;Resident TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 00:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Utilization-Hour/m-p/425824#M158618</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-05T00:03:25Z</dc:date>
    </item>
  </channel>
</rss>

