<?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: Compare time difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468469#M174962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would approach this problem in a different way. &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a chart with process_id as dimension&lt;/LI&gt;&lt;LI&gt;Use interval(max(modified_end_time) - max(actual_start_time))&lt;/LI&gt;&lt;LI&gt;Sort by y-value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Then you will get a direct overview over the statuses of the processes, without having to define the 2 or 4 hour thresholds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then in a second step want to create a chart with these intervals as a dimension, e.g. to see the number of processes within each class, you can do this with the aggr function. I would probably then use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class(aggr(...) /24, 1) &lt;/P&gt;&lt;P&gt;as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 11:25:53 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-10-05T11:25:53Z</dc:date>
    <item>
      <title>Compare time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468467#M174960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have this expression that I use to calculate time difference in hours and minutes -&lt;/P&gt;&lt;P&gt;=(interval(aggr(max(modified_end_time), process_id) - aggr(max(actual_start_time), process_id)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the correct answer for hours and mins. Now I want to build a chart to show where this interval is greater than 2 hours, 4 hours etc. &lt;/P&gt;&lt;P&gt;How do I compare interval?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468467#M174960</guid>
      <dc:creator />
      <dc:date>2012-10-04T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468468#M174961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this can be done by using if statement&amp;nbsp; if((interval(aggr(max(modified_end_time), process_id) - aggr(max(actual_start_time), process_id))))&amp;nbsp; &amp;gt;2&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some thing like that.. so what u want to show exactly if it is greater than 2 and greater than 4, do u want to show it as different&amp;nbsp; color&amp;nbsp; or something else.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468468#M174961</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-10-04T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time difference</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468469#M174962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would approach this problem in a different way. &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a chart with process_id as dimension&lt;/LI&gt;&lt;LI&gt;Use interval(max(modified_end_time) - max(actual_start_time))&lt;/LI&gt;&lt;LI&gt;Sort by y-value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Then you will get a direct overview over the statuses of the processes, without having to define the 2 or 4 hour thresholds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then in a second step want to create a chart with these intervals as a dimension, e.g. to see the number of processes within each class, you can do this with the aggr function. I would probably then use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class(aggr(...) /24, 1) &lt;/P&gt;&lt;P&gt;as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 11:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-difference/m-p/468469#M174962</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-05T11:25:53Z</dc:date>
    </item>
  </channel>
</rss>

