<?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: Lag function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531768#M552905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all you can compare it in Charts &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 11:16:38 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2013-10-09T11:16:38Z</dc:date>
    <item>
      <title>Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531766#M552903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Qlikview and have a specific problem that highlights a broader issue that I'm not sure about yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is whether it is possible to use lag values in a straight table i.e.&amp;nbsp; To create the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); width: 326px; height: 151px;"&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;Month&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;Sum(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;Lag SUM(Value)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;January&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;February&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;b&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;March&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;c&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;April&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;d&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;My ultimate aim is to be able to create a column where I compare the Value with the lag value, but I want to get there in stages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution would be to create another column as I load the data. But is that the best way of doing it? If the dataset were large it would slow down loading. In this situation the data is small, but I often work with big datasets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 09:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531766#M552903</guid>
      <dc:creator />
      <dc:date>2013-10-09T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531767#M552904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use above() function, like:&amp;nbsp; =Above(Sum(Value))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this should be the expression for your lag column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 09:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531767#M552904</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-09T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531768#M552905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all you can compare it in Charts &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531768#M552905</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-10-09T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531769#M552906</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Above(Sum(Sales)) &amp;lt;- Lag level.&lt;/P&gt;&lt;P&gt;=Below(Sum(Sales)) &amp;lt;- Lead level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531769#M552906</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-10-09T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531770#M552907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;above()&lt;/P&gt;&lt;P&gt;it will returns the value of expression evaluated with the chart's dimension values as they appear on the row above the current row within a column segment in a table or, in the case of bitmap charts, in the chart's straight table equivalent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531770#M552907</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2013-10-09T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lag function</title>
      <link>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531771#M552908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies - I got the Above() function working... I knew it must be possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lag-function/m-p/531771#M552908</guid>
      <dc:creator />
      <dc:date>2013-10-09T11:31:50Z</dc:date>
    </item>
  </channel>
</rss>

