<?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: Pivot Table  calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002724#M340772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either reuse the expressions:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;} PERIOD_DR) - Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;} PERIOD_CR)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can reference the columns in the same table by name, or using the Column(n) function:&lt;/P&gt;&lt;P&gt;=[Sale of Assets(Debit)] - [Sale of Assets(Credit)]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 06:34:19 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-10-06T06:34:19Z</dc:date>
    <item>
      <title>Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002722#M340770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Expets,&lt;/P&gt;&lt;P&gt;i have&amp;nbsp; calculated column in pivot table and now i need one more&amp;nbsp; column that will come against ( debit -credit )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i have two column &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 222px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="113"&gt;Sale of Assets(Credit)&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="109"&gt;Sale of Assets(Debit)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;then i need one column more, name will be Sale of Assets (Net)&lt;/P&gt;&lt;P&gt;logic will be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Sale of Assets(Debit) - &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Sale of Assets(Credit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have attached same pivot table in excel&amp;nbsp; plz find and try to solve my problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sale of Assets(Credit)- calculation is&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;=Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;}PERIOD_CR)&lt;/SPAN&gt; and Label&amp;nbsp; name is &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Sale of Assets(Credit)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 13.3333px;"&gt;Sale of Assets(Debit)-&amp;nbsp; calculation is&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #ff0000;"&gt;=Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;}PERIOD_DR)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; and &lt;SPAN style="font-size: 13.3333px;"&gt;Label &lt;/SPAN&gt;name is &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Sale of Assets(Debit)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #999999; font-size: 13.3333px;"&gt;Sale of Assets(Net) =?? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002722#M340770</guid>
      <dc:creator>yadav_anil782</dc:creator>
      <dc:date>2015-10-06T06:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002723#M340771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Column 1- column2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002723#M340771</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-10-06T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002724#M340772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either reuse the expressions:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;} PERIOD_DR) - Sum({&amp;lt;ACCOUNT_CODE = {"4332"}&amp;gt;} PERIOD_CR)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can reference the columns in the same table by name, or using the Column(n) function:&lt;/P&gt;&lt;P&gt;=[Sale of Assets(Debit)] - [Sale of Assets(Credit)]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002724#M340772</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-06T06:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002725#M340773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Sujeet mentioned,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use these calculated columns in your expression and do a substraction from Debt to Credit.. Also handle null values and force them to "zero". this will works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002725#M340773</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-10-06T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002726#M340774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="t1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101038_t1.png" style="height: 173px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002726#M340774</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-06T06:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table  calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002727#M340775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use if want to handle null values&lt;/P&gt;&lt;P&gt;if(isnull(ColumnNo(1)),0-ColumnNo(2),if(isnull(columnNo(2),ColumnNo(1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-calculation/m-p/1002727#M340775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-06T06:47:44Z</dc:date>
    </item>
  </channel>
</rss>

