<?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 Add calculated difference row in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-calculated-difference-row-in-pivot-table/m-p/90876#M757142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to add row in pivot by calculating difference of two other rows of outstandingg Amount.&lt;/P&gt;&lt;P&gt;But i got incorrect value.please help me to figure out what is the issue or else some other method to calcullat it.&lt;/P&gt;&lt;P&gt;here is the snapshot of output and script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; "SEGMENT CODE" as diffseg,&lt;/P&gt;&lt;P&gt; OS_Date ,&lt;/P&gt;&lt;P&gt; OS_Date as diffosdate,&lt;/P&gt;&lt;P&gt; "LOCATION NAME" as diffLocation,&lt;/P&gt;&lt;P&gt; "OUTSTANDING AMOUNT" as diffout&lt;/P&gt;&lt;P&gt;resident Out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "SEGMENT CODE" as diffseg,&lt;/P&gt;&lt;P&gt; OS_Date,&lt;/P&gt;&lt;P&gt; 'Diff' as diffosdate ,&lt;/P&gt;&lt;P&gt; "LOCATION NAME" as diffLocation,&lt;/P&gt;&lt;P&gt; "OUTSTANDING AMOUNT"-Previous("OUTSTANDING AMOUNT") as diffout&lt;/P&gt;&lt;P&gt; Resident Out ; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>pranali_gawde</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Add calculated difference row in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-difference-row-in-pivot-table/m-p/90876#M757142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to add row in pivot by calculating difference of two other rows of outstandingg Amount.&lt;/P&gt;&lt;P&gt;But i got incorrect value.please help me to figure out what is the issue or else some other method to calcullat it.&lt;/P&gt;&lt;P&gt;here is the snapshot of output and script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; "SEGMENT CODE" as diffseg,&lt;/P&gt;&lt;P&gt; OS_Date ,&lt;/P&gt;&lt;P&gt; OS_Date as diffosdate,&lt;/P&gt;&lt;P&gt; "LOCATION NAME" as diffLocation,&lt;/P&gt;&lt;P&gt; "OUTSTANDING AMOUNT" as diffout&lt;/P&gt;&lt;P&gt;resident Out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "SEGMENT CODE" as diffseg,&lt;/P&gt;&lt;P&gt; OS_Date,&lt;/P&gt;&lt;P&gt; 'Diff' as diffosdate ,&lt;/P&gt;&lt;P&gt; "LOCATION NAME" as diffLocation,&lt;/P&gt;&lt;P&gt; "OUTSTANDING AMOUNT"-Previous("OUTSTANDING AMOUNT") as diffout&lt;/P&gt;&lt;P&gt; Resident Out ; &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/Add-calculated-difference-row-in-pivot-table/m-p/90876#M757142</guid>
      <dc:creator>pranali_gawde</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

