<?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 How to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to/m-p/669409#M1241849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikView community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this database in the table below me.&lt;/P&gt;&lt;P&gt;I have the same master number for every job ref in the data&lt;/P&gt;&lt;P&gt;But my data is setup up in that way that when you have the same master nr. and job ref they add the weight from the other job ref.&lt;/P&gt;&lt;P&gt;So the weight for job ref VAGS003 is 2,3 + 5,8 = 8,1.&lt;/P&gt;&lt;P&gt;But actually it is 0 not 8,1 like my data is saying. So I used the formula &lt;SPAN style="color: #0000ff;"&gt;=if ( [Master nr.]=[Job Ref], '0', Sum(Weight))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But I noticed the problem that the total does not decline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The total is 16,2 in the QlikView file but I want the total to be 8,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="216"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="21" width="72"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Master nr.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="72"&gt;Job Ref&lt;/TD&gt;&lt;TD width="72"&gt;Weight&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;/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;/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;/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>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>How to</title>
      <link>https://community.qlik.com/t5/QlikView/How-to/m-p/669409#M1241849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikView community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this database in the table below me.&lt;/P&gt;&lt;P&gt;I have the same master number for every job ref in the data&lt;/P&gt;&lt;P&gt;But my data is setup up in that way that when you have the same master nr. and job ref they add the weight from the other job ref.&lt;/P&gt;&lt;P&gt;So the weight for job ref VAGS003 is 2,3 + 5,8 = 8,1.&lt;/P&gt;&lt;P&gt;But actually it is 0 not 8,1 like my data is saying. So I used the formula &lt;SPAN style="color: #0000ff;"&gt;=if ( [Master nr.]=[Job Ref], '0', Sum(Weight))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But I noticed the problem that the total does not decline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The total is 16,2 in the QlikView file but I want the total to be 8,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="216"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="21" width="72"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Master nr.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="72"&gt;Job Ref&lt;/TD&gt;&lt;TD width="72"&gt;Weight&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;/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;/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;/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/m-p/669409#M1241849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to</title>
      <link>https://community.qlik.com/t5/QlikView/How-to/m-p/669410#M1241852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because in pivot table, the total evaluates the expression as well for the whole set. It does not just sum the rows. This is where dimensionality() can come in. You can use the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(dimensionality()=0, sum(if ( [Master nr.]=[Job Ref], '0', Weight)), if ( [Master nr.]=[Job Ref], '0', Sum(Weight)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can get away with just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if ( [Master nr.]=[Job Ref], '0', Weight))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I listed the first one to show you how you can use dimensionality() if you couldn't have reduced it anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to/m-p/669410#M1241852</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-12T14:00:28Z</dc:date>
    </item>
  </channel>
</rss>

