<?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: Sum of multiple field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393937#M1161661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;below i give sample exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(empno=1,11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(empno=2,22,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(empno=3,33,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(empno=4,44,55)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above exp if empno=1 then it give 11,&lt;/P&gt;&lt;P&gt;for 2 it show 22,for 3 give 33,for 4 give 44&lt;/P&gt;&lt;P&gt;otherwise give 55 for remaining values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is result table&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24509" class="jive-image" alt="Capture2.PNG" src="https://community.qlik.com/legacyfs/online/24509_Capture2.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 05:41:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-02T05:41:12Z</dc:date>
    <item>
      <title>Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393931#M1161652</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;how to sum multiple field value into single expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; =sum({$&amp;lt;DIVISION ={'L'}&amp;gt;} GROSSWT) OR sum({$&amp;lt;DIVISION ={'D'}&amp;gt;} PCS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;In above mention example, If I am using first part I am able to see the sum of division "L" on my expression but when I am addting OR for second value my calculation give me -1 as value. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Any idea why ? and if any other way to do that. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 20:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393931#M1161652</guid>
      <dc:creator />
      <dc:date>2012-11-01T20:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393932#M1161654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you maybe looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;=sum({$&amp;lt;DIVISION ={'L'}&amp;gt;} GROSSWT) + sum({$&amp;lt;DIVISION ={'D'}&amp;gt;} PCS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or using rangesum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;=rangesum(sum({$&amp;lt;DIVISION ={'L'}&amp;gt;} GROSSWT),sum({$&amp;lt;DIVISION ={'D'}&amp;gt;} PCS) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;OR is a logical operator and will return either -1 (true) or 0 (false)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 23:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393932#M1161654</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-01T23:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393933#M1161656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wat is the complete expr: any if expr ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 05:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393933#M1161656</guid>
      <dc:creator />
      <dc:date>2012-11-02T05:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393934#M1161658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(Wildmatch(DIVISION,'L'),GROSSWT,if(wildmatch(DIVISION,'D'),PCS)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 05:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393934#M1161658</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2012-11-02T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393935#M1161659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(DIVISION ='L',GROSSWT,if(DIVISION='D',PCS)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 05:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393935#M1161659</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2012-11-02T05:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393936#M1161660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;=if(&lt;SPAN style="color: #008000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;DIVISION&lt;/SPAN&gt;='L',sum(&lt;SPAN style="color: #008000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;GROSSWT&lt;/SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="color: #008000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;DIVISION&lt;/SPAN&gt;='D',sum(PCS),null()))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 05:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393936#M1161660</guid>
      <dc:creator />
      <dc:date>2012-11-02T05:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393937#M1161661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;below i give sample exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(empno=1,11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(empno=2,22,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(empno=3,33,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(empno=4,44,55)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above exp if empno=1 then it give 11,&lt;/P&gt;&lt;P&gt;for 2 it show 22,for 3 give 33,for 4 give 44&lt;/P&gt;&lt;P&gt;otherwise give 55 for remaining values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is result table&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24509" class="jive-image" alt="Capture2.PNG" src="https://community.qlik.com/legacyfs/online/24509_Capture2.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 05:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393937#M1161661</guid>
      <dc:creator />
      <dc:date>2012-11-02T05:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393938#M1161662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With below mention expression I was able to get reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DIVISION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='D'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PCS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GROSSWT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 05:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/393938#M1161662</guid>
      <dc:creator />
      <dc:date>2012-11-12T05:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/1513489#M1161663</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for this kind of sum that you have mentioned:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({$&amp;lt;DIVISION ={'L'}&amp;gt;} GROSSWT) + sum({$&amp;lt;DIVISION ={'D'}&amp;gt;} PCS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I noticed&amp;nbsp;that the "+" is not summing it up for me. Only one of the two expressions is executed. Do you have any idea on how to sum tow sums??&amp;nbsp; I already have provided an example it would be great if you could have a look at it. The contribution title is "&lt;STRONG&gt;getting the quarters right&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 09:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-field-value/m-p/1513489#M1161663</guid>
      <dc:creator>BrightFuture</dc:creator>
      <dc:date>2018-11-28T09:57:01Z</dc:date>
    </item>
  </channel>
</rss>

