<?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: How to get right total in Pivot table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669656#M1241818</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 in your expression.&lt;/P&gt;&lt;P&gt;=if(Flag = 'N', SUM(Weight),&lt;/P&gt;&lt;P&gt;if([Master nr.] = [Job Ref],Above(Sum(Weight))+Above(sum(Weight),2),'0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Find attached example It is as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 15:21:26 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-06-12T15:21:26Z</dc:date>
    <item>
      <title>How to get right total in Pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669655#M1241816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi QlikView community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I got this database in the table below me.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a master number for every job ref in the data&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But my data is setup up in that way that when you have many job ref in the same master nr the job ref VAGS003 adds weight of the VAGS001 + VAGS002 together&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So the weight for job ref VAGS003 is 2,3 + 5,8 = 8,1.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But actually it is 0 not 8,1 like my data is saying. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sometimes I have the just one Job Ref in one Master nr. e.g. AARS002 and that is no problem&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have signal for when the master nr equals the Job Ref (Flag = 'Y')&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So I used the formula &lt;/P&gt;&lt;P&gt;=if(Flag = 'N', SUM(Weight),&lt;/P&gt;&lt;P&gt;sum (Aggr ([Master nr.] = [Job Ref],'0',(Weight), [Job Ref])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and it worked okay but not for the total weight.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't want to use sum of rows because I want to have Pivot table.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="288"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="21" width="72"&gt;Master nr.&lt;/TD&gt;&lt;TD width="72"&gt;Job Ref&lt;/TD&gt;&lt;TD width="72"&gt;Weight&lt;/TD&gt;&lt;TD width="72"&gt;Flag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;VAGS003&lt;/TD&gt;&lt;TD&gt;VAGS001&lt;/TD&gt;&lt;TD align="right"&gt;2,3&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;VAGS003&lt;/TD&gt;&lt;TD&gt;VAGS002&lt;/TD&gt;&lt;TD align="right"&gt;5,8&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;VAGS003&lt;/TD&gt;&lt;TD&gt;VAGS003&lt;/TD&gt;&lt;TD align="right"&gt;8,1&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="21"&gt;AARS002&lt;/TD&gt;&lt;TD&gt;AARS002&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669655#M1241816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get right total in Pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669656#M1241818</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 in your expression.&lt;/P&gt;&lt;P&gt;=if(Flag = 'N', SUM(Weight),&lt;/P&gt;&lt;P&gt;if([Master nr.] = [Job Ref],Above(Sum(Weight))+Above(sum(Weight),2),'0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Find attached example It is as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 15:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669656#M1241818</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-06-12T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get right total in Pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669657#M1241821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there, try with beow exp&lt;/P&gt;&lt;P&gt;=sum(aggr(&lt;/P&gt;&lt;P&gt;if(Flag = 'N', SUM(Weight),&lt;/P&gt;&lt;P&gt;sum (Aggr ([Master nr.] = [Job Ref],'0',(Weight), [Job Ref]))),[Master nr.],[Job Ref]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-right-total-in-Pivot-table/m-p/669657#M1241821</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-06-12T15:31:17Z</dc:date>
    </item>
  </channel>
</rss>

