<?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 Subtraction in pivot table or straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385438#M1168100</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;In my report, one of the field is getting calculated based on the subtraction of two fields. Please check the attached screen shot "PnLExp", here i want to calculate "Gross margin".&lt;/P&gt;&lt;P&gt;Formula is&amp;nbsp; Gross margin = Total Direct Labor Cost - Total Other Direct Cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can achieve this, in pivot or straight table; pls. help.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22980" class="jive-image-thumbnail jive-image" onclick="" alt="PnLExp.png" src="https://community.qlik.com/legacyfs/online/22980_PnLExp.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 06:17:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-05T06:17:02Z</dc:date>
    <item>
      <title>Subtraction in pivot table or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385438#M1168100</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;In my report, one of the field is getting calculated based on the subtraction of two fields. Please check the attached screen shot "PnLExp", here i want to calculate "Gross margin".&lt;/P&gt;&lt;P&gt;Formula is&amp;nbsp; Gross margin = Total Direct Labor Cost - Total Other Direct Cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can achieve this, in pivot or straight table; pls. help.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22980" class="jive-image-thumbnail jive-image" onclick="" alt="PnLExp.png" src="https://community.qlik.com/legacyfs/online/22980_PnLExp.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 06:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385438#M1168100</guid>
      <dc:creator />
      <dc:date>2012-10-05T06:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction in pivot table or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385439#M1168101</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Total Direct Labor Cost) - Sum(Total Other Direct Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 11:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385439#M1168101</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-10-05T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction in pivot table or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385440#M1168102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. But unfortunately its not working.&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 07:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385440#M1168102</guid>
      <dc:creator />
      <dc:date>2012-10-08T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Subtraction in pivot table or straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385441#M1168103</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;Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(Sum(Total Direct Labor Cost) - Sum(Total Other Direct Cost),Pnt_Parent) &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;RL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtraction-in-pivot-table-or-straight-table/m-p/385441#M1168103</guid>
      <dc:creator />
      <dc:date>2012-10-08T08:41:53Z</dc:date>
    </item>
  </channel>
</rss>

