<?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: Difference in fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311941#M115144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure you can actually just subtract max(Meter reading, 2), max takes a parameter for the rank as well as for the data field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 14:26:50 GMT</pubDate>
    <dc:creator>richnorris</dc:creator>
    <dc:date>2011-07-27T14:26:50Z</dc:date>
    <item>
      <title>Difference in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311938#M115141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a QVD with meter readings data in it. This is made up of one row for each reading, therefore each customer will have numerous rows of readings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This data will have:&lt;/P&gt;&lt;P&gt;Customer Number - Reading Date - Meter Reading&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/09/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/02/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 135&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to work out the difference between the last reading and the reading before, for each customer. So for the example above the difference would be 25. I can identify the latest reading by MAX(Meter Reading), but can't think how to subtract the second highest reading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done in either the script or via an expression in a chart table? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 13:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311938#M115141</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2011-07-27T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Difference in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311939#M115142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can do this using &lt;STRONG&gt;Peek()&lt;/STRONG&gt; function in script. Peek function will not work in Charts.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 14:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311939#M115142</guid>
      <dc:creator />
      <dc:date>2011-07-27T14:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311940#M115143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Find the attached file for your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 14:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311940#M115143</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-07-27T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311941#M115144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure you can actually just subtract max(Meter reading, 2), max takes a parameter for the rank as well as for the data field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 14:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311941#M115144</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2011-07-27T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311942#M115145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Of course. Didn't even think of that, works fine, thanks! &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, 27 Jul 2011 14:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-fields/m-p/311942#M115145</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2011-07-27T14:29:32Z</dc:date>
    </item>
  </channel>
</rss>

