<?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 Time Differences put into Categories in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315613#M116452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it should have been relatively simple, just couldn't work out the correct format. Your suggestion worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 07:53:02 GMT</pubDate>
    <dc:creator>rosey13478</dc:creator>
    <dc:date>2011-06-24T07:53:02Z</dc:date>
    <item>
      <title>Time Differences put into Categories</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315611#M116450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two date/time fields (BATime &amp;amp; AppTime), I need to be able to count how many people are in the following categories:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BATime is less than AppTime&lt;/P&gt;&lt;P&gt;BATime is within +/- 5 mins of AppTime&lt;/P&gt;&lt;P&gt;BATime is up to 30 mins after AppTime&lt;/P&gt;&lt;P&gt;BATime is up to 60 mins after AppTime&lt;/P&gt;&lt;P&gt;BATime is greater than 60 mins after AppTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried various calculations using interval to find the difference in minutes between the BATime and AppTime, the problem I am having is putting the time differences into the above categories.&amp;nbsp; I am going to show this info in a pie chart....hopefully!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 15:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315611#M116450</guid>
      <dc:creator>rosey13478</dc:creator>
      <dc:date>2011-06-23T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Time Differences put into Categories</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315612#M116451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rosey,&lt;/P&gt;&lt;P&gt;if your BATime and AppTime are both timestamps (in same table), you can easily calculate with them like this:&lt;/P&gt;&lt;P&gt;Diff = AppTime-BATime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this in mind try to start (as an exercise) creating a straight table with for ex. two expressions "DiffTime" and "Category" like this:&lt;/P&gt;&lt;P&gt;"DiffTime":&lt;/P&gt;&lt;P&gt;AppTime-BATime (format it as an "interval" for better understanding of your expr "Cat")&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;"Cat":&lt;/P&gt;&lt;P&gt;if((AppTime-BATime) &amp;lt; '00:00:00','A',&lt;/P&gt;&lt;P&gt;if((AppTime-BATime) &amp;lt; '00:05:00', 'B',&lt;/P&gt;&lt;P&gt;if((AppTime-BATime) &amp;lt; '00:30:00', 'C', 'D'&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are familar with this, I would suggest you to put the whole calculating into the load-script. Then you are able to use your Time-Cat whereever you want, for ex. as an dimension in a pie chart ....&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 18:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315612#M116451</guid>
      <dc:creator />
      <dc:date>2011-06-23T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Time Differences put into Categories</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315613#M116452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it should have been relatively simple, just couldn't work out the correct format. Your suggestion worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 07:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Differences-put-into-Categories/m-p/315613#M116452</guid>
      <dc:creator>rosey13478</dc:creator>
      <dc:date>2011-06-24T07:53:02Z</dc:date>
    </item>
  </channel>
</rss>

