<?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 Grouping records with timestamp into 30 min intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170092#M40636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a table with sales transcations which contain timestamps for when the transaction was completed. I am trying to group these records into 30 min intervals. Ultimately I would like to be able to graph the sales throughout a day. Any help would be much appreciated. Below is the table I am working with. &lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3848_sourceID:3848" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2011 23:51:36 GMT</pubDate>
    <dc:creator>villegasi03</dc:creator>
    <dc:date>2011-03-18T23:51:36Z</dc:date>
    <item>
      <title>Grouping records with timestamp into 30 min intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170092#M40636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a table with sales transcations which contain timestamps for when the transaction was completed. I am trying to group these records into 30 min intervals. Ultimately I would like to be able to graph the sales throughout a day. Any help would be much appreciated. Below is the table I am working with. &lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3848_sourceID:3848" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 23:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170092#M40636</guid>
      <dc:creator>villegasi03</dc:creator>
      <dc:date>2011-03-18T23:51:36Z</dc:date>
    </item>
    <item>
      <title>Grouping records with timestamp into 30 min intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170093#M40637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;When you do you master calendar, use something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vMinDate = Num(Date('01/03/2011'));LET vMaxDate = Num(Date('31/03/2011')); CalendarTemp:LOAD DayStart(TimeStamp($(vMinDate) + (RecNo()/60/24) + (IterNo() -1))) AS Date, TimeStamp($(vMinDate) + (RecNo()/60/24) + (IterNo() -1)) AS CompleteTimeStamp, Time(MakeTime(Hour(TimeStamp($(vMinDate) + (RecNo()/60/24) + (IterNo() -1))), Div(Minute(TimeStamp($(vMinDate) + (RecNo()/60/24) + (IterNo() -1))), 30) * 30), 'hh:mm') AS HalfHourTimeAUTOGENERATE 1439 WHILE Num($(vMinDate) + IterNo() -1) &amp;lt;= Num($(vMaxDate));&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is that field HalfHourTime what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 00:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170093#M40637</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-19T00:33:13Z</dc:date>
    </item>
    <item>
      <title>Grouping records with timestamp into 30 min intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170094#M40638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;Thank you for the rely. The field is a timestamp containing the Date(YYYY-MM-DD) and Time(hh:mm:ss:nano secs). Below is the script I'm currently running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTicketItems:&lt;BR /&gt;LOAD&lt;BR /&gt; BCreateDate,&lt;BR /&gt; BDiscAmt,&lt;BR /&gt; BHiddenTax,&lt;BR /&gt; BPrice,&lt;BR /&gt; BItemAutoDisc,&lt;BR /&gt; BItemGrossPrice,&lt;BR /&gt; BItemManulDisc,&lt;BR /&gt; MONEY(BItemNetPrice) AS BItemNetPrice,&lt;BR /&gt; //BTktItemCloseDate,&lt;BR /&gt; FLOOR(BTktItemCloseDate) AS BTktItemCloseDate,&lt;BR /&gt; Year(FLOOR(BTktItemCloseDate)) as BYear,&lt;BR /&gt; Month(FLOOR(BTktItemCloseDate)) as BMonth,&lt;BR /&gt; Date(Monthstart(FLOOR(BTktItemCloseDate)), 'MMM-YYYY') as BMonthYear,&lt;BR /&gt; Day(FLOOR(BTktItemCloseDate)) as BDay,&lt;BR /&gt; Week(FLOOR(BTktItemCloseDate)) as BWeek,&lt;BR /&gt; Weekday(FLOOR(BTktItemCloseDate)) as BWeekday,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(FLOOR(BTktItemCloseDate))/3) as BQuarter ,&lt;BR /&gt; BEmployeeID,&lt;BR /&gt; BMenuItemID,&lt;BR /&gt; BTktItemRevCenterID,&lt;BR /&gt; BTktItemVoidTktID,&lt;BR /&gt; BTicketID,&lt;BR /&gt; BTicketItemID,&lt;BR /&gt; BTktItemActEmpID,&lt;BR /&gt; BVoidItemID,&lt;BR /&gt; BItem&lt;BR /&gt;FROM&lt;BR /&gt;QlikView\Locations\BTicketItems.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 00:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-records-with-timestamp-into-30-min-intervals/m-p/170094#M40638</guid>
      <dc:creator>villegasi03</dc:creator>
      <dc:date>2011-03-19T00:55:24Z</dc:date>
    </item>
  </channel>
</rss>

