<?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: Group hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368750#M616257</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;I think I will elaborate my question with a actual example. I have the below data in my date field&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162268_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;When I use the hour function on the above. I get the data as&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/162272_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;What I would like to see is just one time 09:00 AM. Basically for the Range -&amp;gt; 09:00 - 09:59 show it as 09:00&lt;/P&gt;&lt;P&gt;Hope you understood my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 20:57:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-04T20:57:10Z</dc:date>
    <item>
      <title>Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368744#M616251</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 a "Date" field in the format&amp;nbsp; eg: "3/24/2017&amp;nbsp; 1:05:00 AM". I used Time([Date], 'h tt') to get 1 AM, 2 AM , 3 AM etc.&lt;/P&gt;&lt;P&gt;My problem is I get the data in the below format&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162266_pastedImage_123.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I would like to group these to show only&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;01:00 AM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;02:00 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;03:00 AM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Need help in achieving this&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 19:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368744#M616251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368745#M616252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use hour(field) to extract the numeric value. Time() function just formats the data, but still has the original value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 19:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368745#M616252</guid>
      <dc:creator>hectormunoz</dc:creator>
      <dc:date>2017-05-04T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368746#M616253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this may be -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162267_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368746#M616253</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-04T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368747#M616254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the timestamp fields are numbers, you can use floor(field) to retrieve only the day value, and time(frac(field)) to extract the time part. The format will depend on the second parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(&lt;SPAN style="font-size: 13.3333px;"&gt;floor(field)&lt;/SPAN&gt;) will set to 00:00:00 the time part&lt;/P&gt;&lt;P&gt;time(frac(Date),'hh:mm') will keep the second precision, but will not show in the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368747#M616254</guid>
      <dc:creator>hectormunoz</dc:creator>
      <dc:date>2017-05-04T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368748#M616255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Time(Date(yourdatefield, 'MM/DD/YYYY hh:mm:ss TTT'), 'hh:mm TTT')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368748#M616255</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-04T20:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368749#M616256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put this in your script.&lt;/P&gt;&lt;P&gt;=MakeTime(hour(Time(frac(Date))),0,0) as GroupedHour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368749#M616256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T20:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368750#M616257</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;I think I will elaborate my question with a actual example. I have the below data in my date field&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162268_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;When I use the hour function on the above. I get the data as&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/162272_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;What I would like to see is just one time 09:00 AM. Basically for the Range -&amp;gt; 09:00 - 09:59 show it as 09:00&lt;/P&gt;&lt;P&gt;Hope you understood my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368750#M616257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T20:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368751#M616258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Wallo. This is what I am looking for. How do you remove the minutes and the seconds&amp;nbsp; and show&lt;/P&gt;&lt;P&gt;09 AM&lt;/P&gt;&lt;P&gt;10 AM&lt;/P&gt;&lt;P&gt;12 AM etc.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 21:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368751#M616258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T21:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368752#M616259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;time(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MakeTime(hour(Time(frac(Date))),0,0) &lt;/SPAN&gt;, 'HH TT')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 21:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368752#M616259</guid>
      <dc:creator>hectormunoz</dc:creator>
      <dc:date>2017-05-04T21:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368753#M616260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could either just go into the Number format for the field in the UI and select Timestamd and type&lt;/P&gt;&lt;P&gt;h[.fff] TT as the Format Pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could do it in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time(MakeTime(hour(Time(frac(Date))),0,0),'h TT') as GroupedHour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 21:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368753#M616260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T21:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Group hours</title>
      <link>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368754#M616261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Superb!. Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 21:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-hours/m-p/1368754#M616261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T21:09:28Z</dc:date>
    </item>
  </channel>
</rss>

