<?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 fucntion not counting values which are the same in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-fucntion-not-counting-values-which-are-the-same/m-p/78119#M5196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried using an if function like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( jobnum="jobnum",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(distinct{&amp;lt;[DG.class]={1}&amp;gt;+&amp;lt;jobnum={jobnum}&amp;gt;}[DG.uomactqty]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'test'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but what would the second part of the function be( the test part) i need it to sum all the below values. (in red)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194332_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 11:33:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-23T11:33:32Z</dc:date>
    <item>
      <title>Sum fucntion not counting values which are the same</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-fucntion-not-counting-values-which-are-the-same/m-p/78118#M5195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you guys could help.&lt;/P&gt;&lt;P&gt;Below is a table with groupings. The value highlighted in yellow is the totals field of all the values in red.&lt;/P&gt;&lt;P&gt;The only issue is the totals doesn't count all three of the same values (In Blue) it only counts one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my function. - &lt;STRONG&gt;sum(distinct{&amp;lt;[DG.class]={1}&amp;gt;+&amp;lt;jobnum={jobnum}&amp;gt;}[DG.uomactqty]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I believe its to do with the '&lt;STRONG&gt;Distinct&lt;/STRONG&gt;' but i need this as otherwise my figures (In red) are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194313_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 10:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-fucntion-not-counting-values-which-are-the-same/m-p/78118#M5195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T10:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fucntion not counting values which are the same</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-fucntion-not-counting-values-which-are-the-same/m-p/78119#M5196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried using an if function like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( jobnum="jobnum",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(distinct{&amp;lt;[DG.class]={1}&amp;gt;+&amp;lt;jobnum={jobnum}&amp;gt;}[DG.uomactqty]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'test'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but what would the second part of the function be( the test part) i need it to sum all the below values. (in red)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194332_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-fucntion-not-counting-values-which-are-the-same/m-p/78119#M5196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T11:33:32Z</dc:date>
    </item>
  </channel>
</rss>

