<?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: time expression definition doubt in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730509#M261666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline, thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression works perfectly, unfortunately i forgot that some times one ID could have 2 dates in “started” status. So…..Is it possible to take only the last date value of each status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: lunes, 23 de junio de 2014 03:48 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/554327?et=watches.email.thread#554327&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2014 19:29:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-23T19:29:49Z</dc:date>
    <item>
      <title>time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730506#M261663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi guys, could you please help me with this definition?&lt;/P&gt;&lt;P&gt;I have this base table --&amp;gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;id&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3/2/2014 17:50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;created&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/2/2014 13:04&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;started&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10/2/2014 11:02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;finished&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what i need is something like this --&amp;gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount time in created&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount time in started&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount time in finished&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount total time&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;date(started) - date(created)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;date(finished)-date(started)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;date(currently)-date(finished)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;date(currently)-date(created)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for any help&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730506#M261663</guid>
      <dc:creator />
      <dc:date>2014-06-23T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730507#M261664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61008_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730507#M261664</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-23T18:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730508#M261665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you always have three statuses you can use set analysis like this:&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;status={'started'}&amp;gt;}date)-Only({&amp;lt;status={'created'}&amp;gt;}date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More likely 'created' event can occur without 'started' and 'finished'. This case you can handle like this for example:&lt;/P&gt;&lt;P&gt;=rangemax(Only({&amp;lt;status={'created'}&amp;gt;}date), Only({&amp;lt;status={'started'}&amp;gt;}date))-Only({&amp;lt;status={'created'}&amp;gt;}date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730508#M261665</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-23T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730509#M261666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline, thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression works perfectly, unfortunately i forgot that some times one ID could have 2 dates in “started” status. So…..Is it possible to take only the last date value of each status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: lunes, 23 de junio de 2014 03:48 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/554327?et=watches.email.thread#554327&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 19:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730509#M261666</guid>
      <dc:creator />
      <dc:date>2014-06-23T19:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730510#M261667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that you should decide which one to use for calculations and use the appropriate aggregation function.&lt;/P&gt;&lt;P&gt;I guess the Min() for 'started' status is resonable instead of Only().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730510#M261667</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-24T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730511#M261668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: martes, 24 de junio de 2014 09:22 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/554851?et=watches.email.thread#554851&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730511#M261668</guid>
      <dc:creator />
      <dc:date>2014-06-24T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730512#M261669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline, could you please help me to add the aggr function in the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more clear, in the same example i added a new top level: “customer”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/2/2014 17:50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5/2/2014 13:04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;started&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10/2/2014 11:02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finished&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4/2/2014 10:40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example we need to calculate the amount of time in “created” status per customer and not only by id.&lt;/P&gt;&lt;P&gt;So…i tried to use aggr function but qlikview cant resolve the expression, i need always the id in the graph to a well resolve of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Enviado el: martes, 24 de junio de 2014 09:27 a.m.&lt;/P&gt;&lt;P&gt;Para: 'jive-1844794110-34v1-2-bw4j@qliktech-public.hosted.jivesoftware.com'&lt;/P&gt;&lt;P&gt;Asunto: RE:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect! Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: martes, 24 de junio de 2014 09:22 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/554851?et=watches.email.thread#554851&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730512#M261669</guid>
      <dc:creator />
      <dc:date>2014-06-25T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730513#M261670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have distinct ids here for dofferent customers, so that it doesn't matter.&lt;/P&gt;&lt;P&gt;Otherwise you should deside what means the instance that have status. It could be something represented by 'id' or by combination of 'id' and 'customer id' or just by 'customer id' or &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;something else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr function is not the case. It would be useful if you want for example iterate through all the events relative to customer, calculate the durations and then show one Sum/Avg/Mean/etc value per customer. In other words you need aggr when you want to calculate something for the level that differs from chart dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730513#M261670</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-25T13:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730514#M261671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer Whiteline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you right, doesn’t matter because i have differents “id” but the problem is that i need the id in the graph to resolve the expression. If i only keep in the graph customers qlikvew can’t resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: miércoles, 25 de junio de 2014 10:43 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/555904?et=watches.email.thread#555904&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 14:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730514#M261671</guid>
      <dc:creator />
      <dc:date>2014-06-25T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730515#M261672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Gerardo, c&lt;/SPAN&gt;ould you add a simple sample and describe desiered behaviour ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730515#M261672</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-25T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730516#M261673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline, here an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;base table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;created date (M/DD/YYYY)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;started date &lt;SPAN style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;(M/DD/YYYY)&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;finished date &lt;SPAN style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;(M/DD/YYYY)&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;customer&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9/12/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/15/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/16/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8/10/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/11/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/12/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11/3/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/5/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/6/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/6/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/9/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/10/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/6/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/9/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/14/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6/8/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/10/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/12/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have this, thanks to you:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;amount of days in "created"&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/15/2013 - 9/12/2013 = 3 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/11/2013 - 8/10/2013 = 1 day&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need is something similar but by customer:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;customer&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;avg amount of days in "created"&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(3+1+2) / 3 = 2 days avg &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;((5/9/2013 - 5/6/2013) + (5/9/2013 - 5/6/2013) )&amp;nbsp; / 2 = 3 days avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(6/10/2013 - 6/8/2013) / 1 = 2 days avg&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 20:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730516#M261673</guid>
      <dc:creator />
      <dc:date>2014-06-25T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730517#M261674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The task is to create a table by customer (1) which shows average (3) duration of statuses of each id related to the customer (2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that, according to (1) you need &lt;STRONG&gt;customer as chart dimension&lt;/STRONG&gt;, (2) you need aggr() function to iterate through each id and calculate duration, (3) you have to use Avg() as aggregation function to combine and shoe the result for each customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of expressions it would be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Avg(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;rangemax(Only({&amp;lt;status={'created'}&amp;gt;}date), Only({&amp;lt;status={'started'}&amp;gt;}date))-Only({&amp;lt;status={'created'}&amp;gt;}date)&lt;STRONG&gt;, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;id, customer)&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In your case the customer is not necessary as the ids is unique for each customer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 06:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730517#M261674</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-26T06:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: time expression definition doubt</title>
      <link>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730518#M261675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It Works perfectly! Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im going to read more a about rangemax and aggr functions…i think they are very usefull…..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: whiteline &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 26 de junio de 2014 03:26 a.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: Re:  - time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik Community&amp;lt;http://community.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time expression definition doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from whiteline&amp;lt;http://community.qlik.com/people/whiteline?et=watches.email.thread&amp;gt; in App Development - View the full discussion&amp;lt;http://community.qlik.com/message/556326?et=watches.email.thread#556326&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-expression-definition-doubt/m-p/730518#M261675</guid>
      <dc:creator />
      <dc:date>2014-06-26T13:32:29Z</dc:date>
    </item>
  </channel>
</rss>

