<?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 values on same column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121479#M894698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Type,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Type='Return',-Quantity,Quantity) as Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From YourSource&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 08:48:58 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-08-04T08:48:58Z</dc:date>
    <item>
      <title>Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121473#M894692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am very new to Qlikview and i have a simple question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with the following structure:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Type&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Quantity&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Sale&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Sale&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Return&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Sale&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Return&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add all Sales and subtract all Returns. So, for this example, i want to calculate the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(5+10+15)-(2+5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Althougth i searched it on the internet, i wasn't able to find something helpful. So, any advice will be approciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and sorry for my bad english,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121473#M894692</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121474#M894693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Sum({&amp;lt;Type={'Sale'}&amp;gt;}Quantity) -Sum({&amp;lt;Type={'Return'}&amp;gt;}Quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121474#M894693</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2016-08-03T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121475#M894694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt; Type = {'Sale'} &amp;gt;}Quantity) - Sum({&amp;lt; Type = {'Return'} &amp;gt;}Quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 15:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121475#M894694</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-03T15:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121476#M894695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like what the above two have provided, but have lately developed a habit of using RangeSum().&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt; Type = {'Sale'} &amp;gt;}Quantity),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;-Sum({&amp;lt; Type = {'Return'} &amp;gt;}Quantity))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 16:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121476#M894695</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121477#M894696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another solution might be:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum(If(Type='Return',-1,1)*Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121477#M894696</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-08-03T21:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121478#M894697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answers! I have one more question. Is it possible to made this calculation from the edit script, so it won't be necessary to make the same calculation again and again. I am wondering if there is something like Marco's solution, for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type,&lt;/P&gt;&lt;P&gt;Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Type=Return)&lt;/P&gt;&lt;P&gt;then Quantity*(-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121478#M894697</guid>
      <dc:creator />
      <dc:date>2016-08-04T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121479#M894698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Type,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Type='Return',-Quantity,Quantity) as Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;From YourSource&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 08:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121479#M894698</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-08-04T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121480#M894699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mich,&lt;/P&gt;&lt;P&gt;You can also try this below expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Type={'Sale'}&amp;gt;}Quantity)-&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Type-={'Sale'}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 09:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121480#M894699</guid>
      <dc:creator>susovan</dc:creator>
      <dc:date>2016-08-04T09:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121481#M894700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Num(Sum(Sum({&amp;lt; Type = {'Sale'} &amp;gt;}Quantity),-Sum({&amp;lt; Type = {'Return'} &amp;gt;}Quantity)))&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Sum({&amp;lt; Type = {'Sale'} &amp;gt;}Quantity),-Sum({&amp;lt; Type = {'Return'} &amp;gt;}Quantity))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= rangeSum(Sum({&amp;lt; Type = {'Sale'} &amp;gt;}Quantity),-Sum({&amp;lt; Type = {'Return'} &amp;gt;}Quantity))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this in Load statement:&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Type='Return',-Quantity,Quantity) as Qty&lt;/P&gt;&lt;P&gt;From Source_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 09:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121481#M894700</guid>
      <dc:creator />
      <dc:date>2016-08-04T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121482#M894701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions. It is working fine right now, based on Marco's reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121482#M894701</guid>
      <dc:creator />
      <dc:date>2016-08-05T07:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121483#M894702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;Glad it worked for you.&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 22:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121483#M894702</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-08-05T22:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121484#M894703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one more question: i would like to set a negative value to other fields also. For example, beside Quantity, i would like to set negative also the Amount. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; If(Type='Return',[-Quantity, -Amount],Quantity,Amount) as Negatives&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ofcourse the syntax is wrong, but i assume that it would be something like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 06:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121484#M894703</guid>
      <dc:creator />
      <dc:date>2016-09-14T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate values on same column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121485#M894704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Type='Return', -Quantity, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF(Type = 'Return', -Amount, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF(Type &amp;lt;&amp;gt; 'Return', -Amount, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF(Type &amp;lt;&amp;gt; 'Return', Quantity)))) as Negatives&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 15:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-values-on-same-column/m-p/1121485#M894704</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-14T15:51:55Z</dc:date>
    </item>
  </channel>
</rss>

