<?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 Array of hour integers between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784005#M277508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to find if an hour exists between two dates? For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start Date = 03/18/2015 03:00: PM&lt;/P&gt;&lt;P&gt;End Date = 03/19/2015 07:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how could one test to find it the hour of 08 (8 am) falls between these two dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincere thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheldon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 18:13:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-24T18:13:49Z</dc:date>
    <item>
      <title>Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784005#M277508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to find if an hour exists between two dates? For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start Date = 03/18/2015 03:00: PM&lt;/P&gt;&lt;P&gt;End Date = 03/19/2015 07:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how could one test to find it the hour of 08 (8 am) falls between these two dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincere thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheldon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784005#M277508</guid>
      <dc:creator />
      <dc:date>2015-03-24T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784006#M277509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a field in script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;time(maketime(hour(DT)),'hh TT') as Hour&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you'll have a field that contains: 12 am, 1 am , 2 am and so on (you'll have up to 24 possible values, according to every hour in a day), so you can filter an ocurrence in time, rounded to &lt;STRONG&gt;hours&lt;/STRONG&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784006#M277509</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2015-03-24T18:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784007#M277510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just replace DT with your Date field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784007#M277510</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2015-03-24T18:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784008#M277511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jamie, I am going to try that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784008#M277511</guid>
      <dc:creator />
      <dc:date>2015-03-24T18:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784009#M277512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an interval table with all possible combinations.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See attached. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784009#M277512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-24T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784010#M277513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jamie that was helpful, but what I am really looking for is a way to use the match function to test if the hour exists between two dates. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784010#M277513</guid>
      <dc:creator />
      <dc:date>2015-03-24T19:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784011#M277514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, then try with &lt;STRONG&gt;interval match function&lt;/STRONG&gt;, just like Michael suggested,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784011#M277514</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2015-03-24T21:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784012#M277515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike, this is almost what I am looking for. The qvw you attached is very clear. What I am trying to achieve is the time value of the hour intervals between two dates. For instance their are nine hourly intervals between 03/18/2015 08:00 PM and 03/19/2015 05:00 AM. The interval Function returns them as 1,2,3,4,5,6,7,8,9. What I am looking for is something that will return the hour intervals as the actual hour values, like 20, 21,22,23,00,01,02,03,04,05.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 01:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784012#M277515</guid>
      <dc:creator />
      <dc:date>2015-03-25T01:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Array of hour integers between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784013#M277516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure there is a better way to do this but it seems to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 03:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-of-hour-integers-between-two-dates/m-p/784013#M277516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T03:06:55Z</dc:date>
    </item>
  </channel>
</rss>

