<?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 Inventory difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inventory-difference/m-p/180395#M46848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help with this, supposedly, easy exercise? I've got an sql table containing inventory values at certain points of time e.g.:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Date, Value&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-01-01, 10&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-06-30, 9&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-12-31, 12&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2010-01-01, 7&lt;/P&gt;&lt;P&gt;and would like to find difference between the last and the first within a period to get:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;-1 for 01-06.2009&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2 for 01-12.2009&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;0 for 01-12.2010 (one record is the first and the last at the same time)&lt;/P&gt;&lt;P&gt;Due to the complexity of the rest of the script I need to set it within sql code.&lt;/P&gt;&lt;P&gt;Thanks, Przemek&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 10:44:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-15T10:44:33Z</dc:date>
    <item>
      <title>Inventory difference</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-difference/m-p/180395#M46848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help with this, supposedly, easy exercise? I've got an sql table containing inventory values at certain points of time e.g.:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Date, Value&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-01-01, 10&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-06-30, 9&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2009-12-31, 12&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2010-01-01, 7&lt;/P&gt;&lt;P&gt;and would like to find difference between the last and the first within a period to get:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;-1 for 01-06.2009&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2 for 01-12.2009&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;0 for 01-12.2010 (one record is the first and the last at the same time)&lt;/P&gt;&lt;P&gt;Due to the complexity of the rest of the script I need to set it within sql code.&lt;/P&gt;&lt;P&gt;Thanks, Przemek&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 10:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-difference/m-p/180395#M46848</guid>
      <dc:creator />
      <dc:date>2010-03-15T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Inventory difference</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-difference/m-p/180396#M46849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If my understanding is correct, the following load script will fulfill your need.&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; date,&lt;BR /&gt; value,&lt;BR /&gt; (value - Previous(value)) as diff;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; date,&lt;BR /&gt; value&lt;BR /&gt;FROM&lt;BR /&gt; sqlTable;&lt;/P&gt;&lt;P&gt;This will load each data from your sql table along with difference from your last record.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-difference/m-p/180396#M46849</guid>
      <dc:creator>gajapathy74</dc:creator>
      <dc:date>2010-03-15T11:56:06Z</dc:date>
    </item>
  </channel>
</rss>

