<?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 data in table by hour in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695672#M53198</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load&lt;BR /&gt;time,&lt;BR /&gt;Left(time,2) as Timestamp,&lt;BR /&gt;qty_traded&lt;BR /&gt;from abc;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Load&lt;BR /&gt;Timestamp,&lt;BR /&gt;Sum(qty_traded) as total_qty&lt;BR /&gt;Resident Table1&lt;BR /&gt;group by Timestamp;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 10:53:42 GMT</pubDate>
    <dc:creator>BalaBhaskar_Qlik</dc:creator>
    <dc:date>2020-04-22T10:53:42Z</dc:date>
    <item>
      <title>Group data in table by hour</title>
      <link>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695667#M53196</link>
      <description>&lt;P&gt;I have the following data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_0-1587551860823.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32271i93A5C2A79095DE84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_0-1587551860823.png" alt="johnnyjohn_0-1587551860823.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a bar chart that group the timestamp by hour and sums the qty_traded in that hour. Currently I just display the data from the table above raw (see below), and I am not sure how to achieve this grouping by hour, so that I have much less bars.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_1-1587551997452.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32273i64818D70295E3C01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_1-1587551997452.png" alt="johnnyjohn_1-1587551997452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695667#M53196</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2024-11-16T18:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Group data in table by hour</title>
      <link>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695672#M53198</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load&lt;BR /&gt;time,&lt;BR /&gt;Left(time,2) as Timestamp,&lt;BR /&gt;qty_traded&lt;BR /&gt;from abc;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Load&lt;BR /&gt;Timestamp,&lt;BR /&gt;Sum(qty_traded) as total_qty&lt;BR /&gt;Resident Table1&lt;BR /&gt;group by Timestamp;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695672#M53198</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2020-04-22T10:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Group data in table by hour</title>
      <link>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695706#M53205</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6006"&gt;@BalaBhaskar_Qlik&lt;/a&gt;&amp;nbsp;thank you for your reply.&lt;/P&gt;&lt;P&gt;I had thought there would be a general solution to do that for different time intervals, but using this method it seems not.&lt;/P&gt;&lt;P&gt;Can this be done for half hours intervals, e.g. 09:00, 09:30, 10:00, 10:30?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695706#M53205</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2020-04-22T11:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group data in table by hour</title>
      <link>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695718#M53206</link>
      <description>&lt;P&gt;You could use class() in calculated dimension expression (or in script) like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Time(SubField(replace(Class(Time, 30/(24*60)), '&amp;lt;= x &amp;lt;','|'), '|',1))
&amp;amp; '-' &amp;amp;
Time(SubField(replace(Class(Time, 30/(24*60)), '&amp;lt;= x &amp;lt;','|'), '|',2))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 404px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32284iF4FE6311A923C4FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-data-in-table-by-hour/m-p/1695718#M53206</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-04-22T11:59:08Z</dc:date>
    </item>
  </channel>
</rss>

