<?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: How to create Time Buckets with DateTime in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622121#M228993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Interval(Floor(Frac(StartDateTime)*24) / 24,'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 10:06:30 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2014-02-24T10:06:30Z</dc:date>
    <item>
      <title>How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622117#M228989</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;I have the following field StartDateTime and I want to create hourly time buckets like the image on the left.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-24_0937.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53686_2014-02-24_0937.png" /&gt;&lt;IMG alt="2014-02-24_0937_001.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53714_2014-02-24_0937_001.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-24_0940.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53715_2014-02-24_0940.png" style="width: 620px; height: 13px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, it's giving me hourly buckets, but for each day, so instead of getting the 24 hourly buckets I am getting 24 for each day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using SUBFIELD Function to extract the time stamp, but I keep getting a result of 00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622117#M228989</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T09:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622118#M228990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry like image on the right!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622118#M228990</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622119#M228991</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;This should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time(Class(StartDateTime, 1/24), 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: forgot to put the frac() inside the class!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622119#M228991</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-24T09:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622120#M228992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives me the time buckets, but again I am getting them for each day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you notice the size of scroll bar on the image below, I have lots of hourly buckets instead of just 24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-24_0953.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53716_2014-02-24_0953.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622120#M228992</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622121#M228993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Interval(Floor(Frac(StartDateTime)*24) / 24,'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 10:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622121#M228993</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-02-24T10:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622122#M228994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to cut away the integer part of the timestamp:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Class(Frac(StartDateTime), 1/24), 'hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 10:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622122#M228994</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-24T10:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Time Buckets with DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622123#M228995</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;The following worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-24_1011.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53724_2014-02-24_1011.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I like the solution Henric provided best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 10:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Time-Buckets-with-DateTime/m-p/622123#M228995</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-02-24T10:15:45Z</dc:date>
    </item>
  </channel>
</rss>

