<?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: Subtraction from multiple rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573359#M597054</link>
    <description>&lt;P&gt;It's a bit difficult to explain but I'll try &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we have 67 applications with start date 2019-04-13, 71 applications with start date 2019-04-20 etc. according to my example and I know that we have the capacity to handle 525 of them and that the oldest start date is handled first, I want to be able to calculate both the oldest start date for the remaining applications and how many applications remain.&lt;/P&gt;&lt;P&gt;(My example is simplified, in reality the volumes are considerably larger.)&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 13:39:37 GMT</pubDate>
    <dc:creator>annanirvin</dc:creator>
    <dc:date>2019-04-25T13:39:37Z</dc:date>
    <item>
      <title>Subtraction from multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573328#M597052</link>
      <description>&lt;P&gt;Hi community.&lt;/P&gt;&lt;P&gt;Is it possible to subtract a sum, e.g. 525, through several subtotals from several different rows in a table? The sum per row must not be negative.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Qty&lt;/TD&gt;&lt;TD&gt;Qty OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-04-13&lt;/TD&gt;&lt;TD&gt;67&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-04-20&lt;/TD&gt;&lt;TD&gt;71&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-04-19&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-04-21&lt;/TD&gt;&lt;TD&gt;113&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-04-22&lt;/TD&gt;&lt;TD&gt;183&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate all the help I can get.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573328#M597052</guid>
      <dc:creator>annanirvin</dc:creator>
      <dc:date>2019-04-25T12:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction from multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573331#M597053</link>
      <description>can you explain that step by step what you want to achieve?</description>
      <pubDate>Thu, 25 Apr 2019 13:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573331#M597053</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-25T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction from multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573359#M597054</link>
      <description>&lt;P&gt;It's a bit difficult to explain but I'll try &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we have 67 applications with start date 2019-04-13, 71 applications with start date 2019-04-20 etc. according to my example and I know that we have the capacity to handle 525 of them and that the oldest start date is handled first, I want to be able to calculate both the oldest start date for the remaining applications and how many applications remain.&lt;/P&gt;&lt;P&gt;(My example is simplified, in reality the volumes are considerably larger.)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 13:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573359#M597054</guid>
      <dc:creator>annanirvin</dc:creator>
      <dc:date>2019-04-25T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction from multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573746#M597055</link>
      <description>&lt;P&gt;here is a sample&amp;nbsp; that should do it:&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;TEST:&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;INLINE&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;[&lt;BR /&gt;Date, Qty, Qty OUT ,Capacity&lt;BR /&gt;2019-04-13, 67, 0, 525&lt;BR /&gt;2019-04-20, 71, 0 ,525&lt;BR /&gt;2019-04-19, 103, 0 ,525&lt;BR /&gt;2019-04-21, 113, 0 ,525&lt;BR /&gt;2019-04-22, 183, 12 ,525&lt;BR /&gt;]&lt;/FONT&gt;&lt;FONT size="1"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample.png" style="width: 557px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10961i2D8ECC2F6F239C5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample.png" alt="sample.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Sort by Date ascending&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;here are the Expressions:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;suM&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;Qty&lt;/FONT&gt;&lt;FONT size="1"&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;suM&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;Capacity&lt;/FONT&gt;&lt;FONT size="1"&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;RangeSum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Above&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;TOTAL&lt;/FONT&gt; &lt;FONT color="#0000ff" size="1"&gt;Sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;Qty&lt;/FONT&gt;&lt;FONT size="1"&gt;), 0, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Rowno&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;TOTAL&lt;/FONT&gt;&lt;FONT size="1"&gt;)))&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;[Cap Total]&lt;/FONT&gt;&lt;FONT size="1"&gt; - &lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;[Qty kum] &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="1"&gt;regards&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;tim&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 10:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1573746#M597055</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-26T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction from multiple rows</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1574088#M597056</link>
      <description>&lt;P&gt;Neat!&amp;nbsp;That's exactly what I want. Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Anna&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 06:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-from-multiple-rows/m-p/1574088#M597056</guid>
      <dc:creator>annanirvin</dc:creator>
      <dc:date>2019-04-27T06:07:57Z</dc:date>
    </item>
  </channel>
</rss>

