<?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 Subtotals for a calculated column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689471#M450539</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a column in my table calculated with an 'if clause' as shown in the image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snip1.jpg" style="width: 823px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30987i2D03FE7DBB95D329/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snip1.jpg" alt="Snip1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically the field 'Normalized Rec Cost1' is calculated on the logic that if the Equipment is the same, it's the difference of the previous Rec Cost1 and the current Rec Cost1. Now my issue with this is that the subtotal for the field 'Normalized Rec Cost1' is showing up as the same as 'Rec Cost1', which is incorrect. How to get the correct subtotal for the field 'Normalized Rec Cost1'?&lt;/P&gt;&lt;P&gt;I tried using a simple Sum(Aggr()) infront of my if clause but that doesn't seem to work and changes the Normalized Rec Cost1 field to wrong values. Help me get the correct subtotal for the field 'Normalized Rec Cost1' please. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attaching the qvf for your reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:56:19 GMT</pubDate>
    <dc:creator>mrthomasshelby</dc:creator>
    <dc:date>2024-11-16T00:56:19Z</dc:date>
    <item>
      <title>Subtotals for a calculated column</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689471#M450539</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a column in my table calculated with an 'if clause' as shown in the image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snip1.jpg" style="width: 823px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30987i2D03FE7DBB95D329/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snip1.jpg" alt="Snip1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically the field 'Normalized Rec Cost1' is calculated on the logic that if the Equipment is the same, it's the difference of the previous Rec Cost1 and the current Rec Cost1. Now my issue with this is that the subtotal for the field 'Normalized Rec Cost1' is showing up as the same as 'Rec Cost1', which is incorrect. How to get the correct subtotal for the field 'Normalized Rec Cost1'?&lt;/P&gt;&lt;P&gt;I tried using a simple Sum(Aggr()) infront of my if clause but that doesn't seem to work and changes the Normalized Rec Cost1 field to wrong values. Help me get the correct subtotal for the field 'Normalized Rec Cost1' please. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attaching the qvf for your reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689471#M450539</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2024-11-16T00:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for a calculated column</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689503#M450541</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum(Aggr(
If([Equipment] = Above(TOTAL [Equipment]), (Sum(Aggr(A1, [Sl No])) - Above(TOTAL Sum(Aggr(A1,[Sl No])))),
Sum(Aggr(A1,[Sl No])))
, Equipment, ([Start Date], (NUMERIC)), [Sl No], Unit, Field1, [End Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 14:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689503#M450541</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-31T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals for a calculated column</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689721#M450550</link>
      <description>&lt;P&gt;Thanks a lot Sunny! It works now.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 08:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-for-a-calculated-column/m-p/1689721#M450550</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2020-04-01T08:11:18Z</dc:date>
    </item>
  </channel>
</rss>

