<?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 Adding and subtracting in the same field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861203#M1009967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where i have to add two columns and subtract another from it in the same field, i wrote the following expression to do that&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Exp :&amp;nbsp; Sum([Qty On Hand])+Sum([Purchase Quantity])-Sum([Sales Quantity])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Dimensions : Date and Item Number&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;At first it worked fine but then i was asked to change it in such a way that it &lt;/SPAN&gt;should&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; start counting with Qty on hand first and then should add if its purchase quantity and &lt;/SPAN&gt;subtract if its sales quantity for each row.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;to do that i did the following expression , &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Keeping in mind that column(4) here is the 1st expression here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RangeSum(Above(TOTAL Column(4), 0, NoOfRows(TOTAL)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;it working only if i select an item number&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and is not working if i &lt;/SPAN&gt;don't&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; make any selection on item number, it is just giving error and not loading the entire sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 20:23:26 GMT</pubDate>
    <dc:creator>maahivee</dc:creator>
    <dc:date>2015-04-30T20:23:26Z</dc:date>
    <item>
      <title>Adding and subtracting in the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861203#M1009967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where i have to add two columns and subtract another from it in the same field, i wrote the following expression to do that&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Exp :&amp;nbsp; Sum([Qty On Hand])+Sum([Purchase Quantity])-Sum([Sales Quantity])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Dimensions : Date and Item Number&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;At first it worked fine but then i was asked to change it in such a way that it &lt;/SPAN&gt;should&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; start counting with Qty on hand first and then should add if its purchase quantity and &lt;/SPAN&gt;subtract if its sales quantity for each row.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;to do that i did the following expression , &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Keeping in mind that column(4) here is the 1st expression here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RangeSum(Above(TOTAL Column(4), 0, NoOfRows(TOTAL)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;it working only if i select an item number&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and is not working if i &lt;/SPAN&gt;don't&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; make any selection on item number, it is just giving error and not loading the entire sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 20:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861203#M1009967</guid>
      <dc:creator>maahivee</dc:creator>
      <dc:date>2015-04-30T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and subtracting in the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861204#M1009968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;RangeSum(Above(Column(4), 0,RowNo()))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 21:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861204#M1009968</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-30T21:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and subtracting in the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861205#M1009969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey I have tried this and the problem is, it should be adding or subtracting to the above row based on the sales order or purchase&amp;nbsp; order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not doing that instead just showing if it would be -ve or +ve value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 14:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861205#M1009969</guid>
      <dc:creator>maahivee</dc:creator>
      <dc:date>2015-05-01T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and subtracting in the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861206#M1009970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your App or a demo/test version of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 19:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-and-subtracting-in-the-same-field/m-p/861206#M1009970</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-09T19:04:43Z</dc:date>
    </item>
  </channel>
</rss>

