<?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: Count by hours?? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734331#M10591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope&amp;nbsp; it helps !&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;mid(field_date,12,2) as Hour,&lt;/P&gt;&lt;P&gt;hour(field_date) as Hour_Count&lt;/P&gt;&lt;P&gt;From....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Count.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68118_Count.PNG.png" style="width: 620px; height: 185px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68117_Captura.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 20:18:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-01T20:18:25Z</dc:date>
    <item>
      <title>Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734328#M10588</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 requirement where i need to put a chart like Count and Sum by only hour irrespective of date, example below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/02/2014 00:12:25&lt;/P&gt;&lt;P&gt;01/02/2014 00:30:29&lt;/P&gt;&lt;P&gt;02/02/2014 01:40:25&lt;/P&gt;&lt;P&gt;05/02/2014 01:18:25&lt;/P&gt;&lt;P&gt;03/02/2014 02:13:25&lt;/P&gt;&lt;P&gt;09/02/2014 02:16:25&lt;/P&gt;&lt;P&gt;25/02/2014 02:54:25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when i take count, the output should be below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hour&amp;nbsp;&amp;nbsp; count&lt;/P&gt;&lt;P&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please help me achieving this!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 07:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734328#M10588</guid>
      <dc:creator />
      <dc:date>2014-10-01T07:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734329#M10589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way would be to create a new field in the load script called "hour".&lt;/P&gt;&lt;P&gt;You can easily use the Hour() function to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg, if DateTime is your existing field, something like this would then allow a count to be preformed on the new "hour" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour(DateTime) as hour&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then easily create a bar chart for example of hour by count(hour).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a very simple example with your data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734329#M10589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-01T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734330#M10590</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;Have a look at the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 18:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734330#M10590</guid>
      <dc:creator />
      <dc:date>2014-10-01T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734331#M10591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope&amp;nbsp; it helps !&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;mid(field_date,12,2) as Hour,&lt;/P&gt;&lt;P&gt;hour(field_date) as Hour_Count&lt;/P&gt;&lt;P&gt;From....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Count.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68118_Count.PNG.png" style="width: 620px; height: 185px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68117_Captura.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 20:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734331#M10591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-01T20:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734332#M10592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a calculated dimension, if your field is datetime&lt;/P&gt;&lt;P&gt;=time(floor(frac(datetime),1/24), 'hh')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression&lt;/P&gt;&lt;P&gt;=count(datetime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68107_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 20:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734332#M10592</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-01T20:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734333#M10593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrihari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement for count and sum of hour,it's unclear.&lt;/P&gt;&lt;P&gt;if you want to count of how many hours&amp;nbsp; an work is done.&lt;/P&gt;&lt;P&gt;you need to take a max hour of each day and sum it.&lt;/P&gt;&lt;P&gt;then you might achieve the requirement you need.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Nitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 18:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734333#M10593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-02T18:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734334#M10594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrihari J, could you please confirm if this is a Qlik Sense or QlikView problem they are having? &lt;/P&gt;&lt;P&gt;This has been posted in the Qlik Sense forum, however a couple of these suggestions are relating to QlikView. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 09:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734334#M10594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-03T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count by hours??</title>
      <link>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734335#M10595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the replies. used 'Hour(datetime) as Hour' while loading, its working fine.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 08:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-by-hours/m-p/734335#M10595</guid>
      <dc:creator />
      <dc:date>2014-10-06T08:41:48Z</dc:date>
    </item>
  </channel>
</rss>

