<?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 Rangesum or ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangesum-or/m-p/266542#M100150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, give an idea how to solve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need chart (table pivot or straight) with 3 dimensions - Date, RefId, Customer and two measures - Ordered and Delta&lt;/P&gt;&lt;P&gt;ordered is just a sum of ordered amount on a date for an order of customer&lt;/P&gt;&lt;P&gt;delta should take current stock minus ordered plus receipt or transfer. delta should be cummulated through all the table, so I'll be able to see when we'll be out of stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this:&lt;/P&gt;&lt;P&gt;sum(StockPcs)+sum({$&amp;lt;Status = {'Sales Orders'}&amp;gt;} QtyPcs)+sum({$&amp;lt;Status = {'Receipt', 'Transfer'}&amp;gt;} QtyPcs)+rangesum(below((sum({$&amp;lt;Status = {'Sales Orders'}&amp;gt;} QtyPcs)+sum({$&amp;lt;Status = {'Receipt', 'Transfer'}&amp;gt;} QtyPcs)), -1, 2000)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i could use "above" instead of "below" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if I use 1 dimension only - everything works fine. so, the only question is - how to make it with 3 dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example sheet attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 14:10:34 GMT</pubDate>
    <dc:creator>ulyxess1983</dc:creator>
    <dc:date>2012-01-11T14:10:34Z</dc:date>
    <item>
      <title>Rangesum or ?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-or/m-p/266542#M100150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, give an idea how to solve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need chart (table pivot or straight) with 3 dimensions - Date, RefId, Customer and two measures - Ordered and Delta&lt;/P&gt;&lt;P&gt;ordered is just a sum of ordered amount on a date for an order of customer&lt;/P&gt;&lt;P&gt;delta should take current stock minus ordered plus receipt or transfer. delta should be cummulated through all the table, so I'll be able to see when we'll be out of stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this:&lt;/P&gt;&lt;P&gt;sum(StockPcs)+sum({$&amp;lt;Status = {'Sales Orders'}&amp;gt;} QtyPcs)+sum({$&amp;lt;Status = {'Receipt', 'Transfer'}&amp;gt;} QtyPcs)+rangesum(below((sum({$&amp;lt;Status = {'Sales Orders'}&amp;gt;} QtyPcs)+sum({$&amp;lt;Status = {'Receipt', 'Transfer'}&amp;gt;} QtyPcs)), -1, 2000)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i could use "above" instead of "below" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if I use 1 dimension only - everything works fine. so, the only question is - how to make it with 3 dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example sheet attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-or/m-p/266542#M100150</guid>
      <dc:creator>ulyxess1983</dc:creator>
      <dc:date>2012-01-11T14:10:34Z</dc:date>
    </item>
  </channel>
</rss>

