<?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: How to select the previous value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604103#M681606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg( aggr( (max(Date)-min(Date)) / (count(Date)-1), [Sales man], Client))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 17:07:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-04-04T17:07:44Z</dc:date>
    <item>
      <title>How to select the previous value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604101#M681604</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;I want to see how many days between my clients sales.&lt;/P&gt;&lt;P&gt;I tried to use =avg(aggr(Date-Above(Total Date),Client,Date)) but it doesn't work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve somenthing like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem título.png" class="jive-image" src="/legacyfs/online/56634_Sem título.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help-me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 16:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604101#M681604</guid>
      <dc:creator>mendoncart</dc:creator>
      <dc:date>2014-04-04T16:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the previous value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604102#M681605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this will point you in the right direction, from the QV help manual...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor46"&gt;&lt;/A&gt;&lt;A name="previous"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expression &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; using data from the previous input record that was not discarded due to a &lt;SPAN class="Bold"&gt;where&lt;/SPAN&gt; clause. In the first record of an internal table the function will return NULL. The previous function may be nested in order to access records further back. Data are fetched directly from the input source, making it possible to refer also to fields which have not been loaded into QlikView, i.e. even if they have not been stored in its associative database. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 17:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604102#M681605</guid>
      <dc:creator />
      <dc:date>2014-04-04T17:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the previous value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604103#M681606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg( aggr( (max(Date)-min(Date)) / (count(Date)-1), [Sales man], Client))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 17:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-the-previous-value/m-p/604103#M681606</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-04T17:07:44Z</dc:date>
    </item>
  </channel>
</rss>

