<?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 By Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315888#M708336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One problem may be that you are using [Note Created On] which doesn't include the time. I think you should use [Note Created On Full]. To assign to 5 minute buckets relative to 2009-01-01 how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Interval( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; interval#(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor((([Note Created On Full] - MakeDate(2009)) * 86400), 300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'s'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,'d hh:mm') as CreatedOn_SSDiff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 19:32:21 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2011-12-20T19:32:21Z</dc:date>
    <item>
      <title>Group By Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315887#M708335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to in QV world and trying to put together a small analytics dashboard. I am trying to count records (activities) created by different users and to group them by 5 minutes period starting 2009-01-01 00:00:00, for each user and each activity. In the code below I am using just one activity for testing. The records get counted and grouped by user but I cannot get them grouped by 5 minute slots. &lt;/P&gt;&lt;P&gt;Please advise. (qvd enclosed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Note Created By]as CreatedBy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Note Created' as Activity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(([Note Created On] - '2009-01-01 00:00:00')/300,'S') as CreatedOn_SSDiff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Note Created On] as StartingDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vProjectQvdDir)Notes.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable2:&lt;/P&gt;&lt;P&gt; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedBy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Activity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Date(StartingDate,'YYYY-MM-DD hh:mm:ss')) as SD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedOn_SSDiff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Activity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TempTable1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Year(StartingDate)=1995&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by&lt;/P&gt;&lt;P&gt;CreatedBy,&lt;/P&gt;&lt;P&gt;Activity, &lt;/P&gt;&lt;P&gt;CreatedOn_SSDiff;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TempTable1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 18:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315887#M708335</guid>
      <dc:creator />
      <dc:date>2011-12-20T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315888#M708336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One problem may be that you are using [Note Created On] which doesn't include the time. I think you should use [Note Created On Full]. To assign to 5 minute buckets relative to 2009-01-01 how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Interval( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; interval#(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor((([Note Created On Full] - MakeDate(2009)) * 86400), 300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,'s'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,'d hh:mm') as CreatedOn_SSDiff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 19:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315888#M708336</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-20T19:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315889#M708337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sir! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was a bit confused as it gave me correct time slots (in seconds) when I was to pull the information into a table or chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 21:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problem/m-p/315889#M708337</guid>
      <dc:creator />
      <dc:date>2011-12-20T21:08:43Z</dc:date>
    </item>
  </channel>
</rss>

