<?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: Calculate inventory when using date related dimensions. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269174#M100977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, solved it myself (poor me, no one answers).&lt;/P&gt;&lt;P&gt;The expression should be: &lt;/P&gt;&lt;P&gt;FirstSortedValue(Distinct Aggr(Sum(INVENTORY),DAY),-DAY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 03:20:50 GMT</pubDate>
    <dc:creator>snoopyboy2599</dc:creator>
    <dc:date>2011-07-13T03:20:50Z</dc:date>
    <item>
      <title>Calculate inventory when using date related dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269172#M100975</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;When I display the inventory, I want to use date related dimensions, such as year, quarter, month, dates, in the table.&lt;/P&gt;&lt;P&gt;If I use expression like Sum( { $&amp;lt; date = { '$(= Max (date) )' } &amp;gt; }&amp;nbsp; Inventory), it will only return the last row correctly and others will be 0s like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="001.JPG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/5767_001.JPG" style="border-style: initial; border-color: initial; margin: 12px;" width="450" /&gt;&lt;/P&gt;&lt;P&gt;What I want to see is like this:&lt;/P&gt;&lt;P&gt;Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inventory&lt;/P&gt;&lt;P&gt;1&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; 30 &lt;/P&gt;&lt;P&gt;2&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; 3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it's because $(= Max (date) ) = 22, but how do I alter it?&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;(above example in attachment)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 03:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269172#M100975</guid>
      <dc:creator>snoopyboy2599</dc:creator>
      <dc:date>2011-07-11T03:16:09Z</dc:date>
    </item>
    <item>
      <title>Calculate inventory when using date related dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269173#M100976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone？&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 14:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269173#M100976</guid>
      <dc:creator>snoopyboy2599</dc:creator>
      <dc:date>2011-07-12T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate inventory when using date related dimensions.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269174#M100977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, solved it myself (poor me, no one answers).&lt;/P&gt;&lt;P&gt;The expression should be: &lt;/P&gt;&lt;P&gt;FirstSortedValue(Distinct Aggr(Sum(INVENTORY),DAY),-DAY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 03:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-inventory-when-using-date-related-dimensions/m-p/269174#M100977</guid>
      <dc:creator>snoopyboy2599</dc:creator>
      <dc:date>2011-07-13T03:20:50Z</dc:date>
    </item>
  </channel>
</rss>

