<?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: Avg Time Period For A given Item in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334524#M1172365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a new field in the script that allows to order your second dimesion ProcedureID accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus I think the first expression should work fine now, not 100% sure about the second (the average).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jun 2012 16:48:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-06-02T16:48:22Z</dc:date>
    <item>
      <title>Avg Time Period For A given Item</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334521#M1172362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿Dear&lt;/P&gt;&lt;P&gt;All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me in the folloing scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find the Attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 06:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334521#M1172362</guid>
      <dc:creator />
      <dc:date>2012-06-02T06:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Time Period For A given Item</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334522#M1172363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mukram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use above(total), you will get the previous line disregarding the column sections (new ItemID).&lt;/P&gt;&lt;P&gt;I would suggest that you remove the CreationDate from the dimensions, using an Expression instead (it's a 1:1 relation to ProcedureID anyway, right?), then your Delta ProcedureTime expression could look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Interval((CreationDate)-Above( CreationDate))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the average ProcedureTime:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Interval(avg(total&amp;lt;ItemID&amp;gt; aggr((CreationDate)-Above( CreationDate),ItemID,ProcedureID)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the last expression work, your ProcedureIDs should have the correct load order (chronological), as in your input file (because aggr() will order by load order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 13:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334522#M1172363</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-02T13:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Time Period For A given Item</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334523#M1172364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will clear one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Item is Moving from source to Destination by passing through the diffrent ProcedureID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when an item is moving from One ProcedureID To another ProcedureID i need to calculate time interval between those two ProcedureID's, and at the end of that of the ProdedureID i need to calculate Total Avg time to reach the Item From Source to Destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in below attached&amp;nbsp; you can see the Item Movments, from Different ProcedureID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and May be sometimes ProcedureID's are not Order.means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an item can move first ProcedureID=54 then ProcedureID=35 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below&amp;nbsp; attached is the scenario of the ItemID=107 which is moving from Different ProceDureID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when item is move from ProcedureID=35 to 38 i need the Time Difference.(00:00:03)&amp;nbsp;&amp;nbsp;&amp;nbsp; (3 seconds) and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 16:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334523#M1172364</guid>
      <dc:creator />
      <dc:date>2012-06-02T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Time Period For A given Item</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334524#M1172365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a new field in the script that allows to order your second dimesion ProcedureID accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus I think the first expression should work fine now, not 100% sure about the second (the average).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 16:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334524#M1172365</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-02T16:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Time Period For A given Item</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334525#M1172366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;Swuehi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for help. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;yes first expression is working 100% correct and full filling my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 17:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Time-Period-For-A-given-Item/m-p/334525#M1172366</guid>
      <dc:creator />
      <dc:date>2012-06-02T17:23:09Z</dc:date>
    </item>
  </channel>
</rss>

