<?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 Reference previous value in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25201#M4161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know of Peek() and Previous() in the script, but can you use similar functionality in charts and tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. I want to use a previous value in a table, but this value is created from different sources and can't be done in the script, the end result should look like this:&lt;/P&gt;&lt;P&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;Value&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;Combined (Value + Previous Combined)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;03/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;04/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;310&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;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is, that I can then do an average of this value, but always including the value from the row before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous seems right, but I gather this is only for script and based on ordered data. Any suggestions you can offer would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 09:13:31 GMT</pubDate>
    <dc:creator>Dayna</dc:creator>
    <dc:date>2018-02-28T09:13:31Z</dc:date>
    <item>
      <title>Reference previous value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25201#M4161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know of Peek() and Previous() in the script, but can you use similar functionality in charts and tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. I want to use a previous value in a table, but this value is created from different sources and can't be done in the script, the end result should look like this:&lt;/P&gt;&lt;P&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;Value&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;Combined (Value + Previous Combined)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;03/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;04/01/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;310&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;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is, that I can then do an average of this value, but always including the value from the row before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous seems right, but I gather this is only for script and based on ordered data. Any suggestions you can offer would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25201#M4161</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2018-02-28T09:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reference previous value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25202#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;A href="https://community.qlik.com/docs/DOC-8242"&gt;Missing Manual - Above() and Below()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your specific question, you cna try like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum(Value), 0, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, look here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25202#M4162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reference previous value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25203#M4163</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;As described above the &lt;EM&gt;Above&lt;/EM&gt; and &lt;EM&gt;Below&lt;/EM&gt; functions do the same as &lt;EM&gt;Previous &lt;/EM&gt;and &lt;EM&gt;Peek&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth to mention is if you have a pivot with some dimensions as columns, you use the &lt;EM&gt;Before&lt;/EM&gt; and &lt;EM&gt;After&lt;/EM&gt; functions instead to move left or right in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25203#M4163</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-02-28T10:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reference previous value in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25204#M4164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-previous-value-in-straight-table/m-p/25204#M4164</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2018-02-28T14:35:18Z</dc:date>
    </item>
  </channel>
</rss>

