<?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 Time Buckets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Buckets/m-p/1941007#M1219336</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to create a time bucket field to show a count of trades by hour on a bar graph.&lt;/P&gt;
&lt;P&gt;time(ceil(udf_utc_cd, 1/24, 1/24)) as TimeBucket&lt;/P&gt;
&lt;P&gt;I created the above field, however when I load my data it seems to somehow remember the date from the field and therefore shows the time multiple times across different days. The attached example is for trades on 06/06/2022 - 08/06/2022. I was hoping to show all trades at 8, 9, 10 etc rather than at 8,9,10 on each day.&lt;/P&gt;
&lt;P&gt;The field udf_utc_cd is in format dd/mm/yyyy hh:mm:ss&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 12:20:14 GMT</pubDate>
    <dc:creator>danielnevitt</dc:creator>
    <dc:date>2022-06-08T12:20:14Z</dc:date>
    <item>
      <title>Time Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Buckets/m-p/1941007#M1219336</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to create a time bucket field to show a count of trades by hour on a bar graph.&lt;/P&gt;
&lt;P&gt;time(ceil(udf_utc_cd, 1/24, 1/24)) as TimeBucket&lt;/P&gt;
&lt;P&gt;I created the above field, however when I load my data it seems to somehow remember the date from the field and therefore shows the time multiple times across different days. The attached example is for trades on 06/06/2022 - 08/06/2022. I was hoping to show all trades at 8, 9, 10 etc rather than at 8,9,10 on each day.&lt;/P&gt;
&lt;P&gt;The field udf_utc_cd is in format dd/mm/yyyy hh:mm:ss&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 12:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Buckets/m-p/1941007#M1219336</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2022-06-08T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Buckets/m-p/1941072#M1219339</link>
      <description>&lt;P&gt;You need to separate the floating-part, for example with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;time(ceil(&lt;STRONG&gt;frac(&lt;/STRONG&gt;udf_utc_cd&lt;STRONG&gt;)&lt;/STRONG&gt;, 1/24, 1/24)) as TimeBucket&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or maybe even easier:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hour(udf_utc_cd) as Hour&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 13:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Buckets/m-p/1941072#M1219339</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-08T13:45:19Z</dc:date>
    </item>
  </channel>
</rss>

