<?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 Calculating MAX time in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212696#M66613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after having a look to your excel, you will have to load the orders again to calculate the max hour. The code probably would look like this:&lt;/P&gt;&lt;P&gt;Load OrderID,&lt;/P&gt;&lt;P&gt;hour( max(time(&lt;B&gt;[TIME RECEIVED], 'hh:mm') ) -&lt;/B&gt; max(time(&lt;B&gt;[TIME HANDLED], 'hh:mm') ) ) as DeltaHours&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;resident Orders&lt;/P&gt;&lt;P&gt;group by OrderID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 15:19:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-13T15:19:10Z</dc:date>
    <item>
      <title>Calculating MAX time in script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212694#M66611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;BR /&gt;I'm currently working on a qlikview application and I'm in need of some assistance&lt;BR /&gt;I have OrderID's which in turn have their own receiving time and handling time.&lt;/P&gt;&lt;P&gt;Now I would like to know the MAX TAT of every Order ID.&lt;/P&gt;&lt;P&gt;I would like to create a field in my script which calculates my maximum TAT.&lt;/P&gt;&lt;P&gt;The MAX TAT of the OrderID is calculated by subtracting the maximum handling time with the minimum of receiving time.&lt;/P&gt;&lt;P&gt;&lt;B&gt;MAX TAT = max(TIME HANDLED) - min(TIME RECEIVED)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I haven't got a clue how to do this in my script.&lt;/P&gt;&lt;P&gt;ALL help is welcome.&lt;BR /&gt;&lt;BR /&gt;Enclosed you will find a excel sheet explaining my problem visually.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7853.Problem_5F00_MaxScript.xlsx:550:0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212694#M66611</guid>
      <dc:creator />
      <dc:date>2010-04-13T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Calculating MAX time in script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212695#M66612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The solution could be loading your data and then joining to it the agregated data. Something as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt; OrderId&lt;BR /&gt; TimeStar,&lt;BR /&gt; TimeEnd,&lt;BR /&gt; ....&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (Data)&lt;BR /&gt;LOAD&lt;BR /&gt; OrderId,&lt;BR /&gt; Max(TimeEnd) - Min(TimeStart) AS Duration&lt;BR /&gt;RESIDENT Data&lt;BR /&gt;GROUP BY OrderId;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212695#M66612</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2010-04-13T15:12:27Z</dc:date>
    </item>
    <item>
      <title>Calculating MAX time in script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212696#M66613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after having a look to your excel, you will have to load the orders again to calculate the max hour. The code probably would look like this:&lt;/P&gt;&lt;P&gt;Load OrderID,&lt;/P&gt;&lt;P&gt;hour( max(time(&lt;B&gt;[TIME RECEIVED], 'hh:mm') ) -&lt;/B&gt; max(time(&lt;B&gt;[TIME HANDLED], 'hh:mm') ) ) as DeltaHours&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;resident Orders&lt;/P&gt;&lt;P&gt;group by OrderID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212696#M66613</guid>
      <dc:creator />
      <dc:date>2010-04-13T15:19:10Z</dc:date>
    </item>
    <item>
      <title>Calculating MAX time in script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212697#M66614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Mr. Pranksus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your option worked out great !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help guys&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-MAX-time-in-script/m-p/212697#M66614</guid>
      <dc:creator />
      <dc:date>2010-04-13T15:47:49Z</dc:date>
    </item>
  </channel>
</rss>

