<?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 not correct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642149#M507697</link>
    <description>&lt;P&gt;Seems like there is a duplication problem here... adding DISTINCT helps, but might not be the best way to do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;num(if(PRIMARY_ASSIGNEE=CCL_RESOURCE, sum(DISTINCT SUB_BUILD_NP_EST_CCL),0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num(Sum(If(PRIMARY_ASSIGNEE = CCL_RESOURCE, SUB_BUILD_NP_EST_CCL)))&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 01 Nov 2019 16:14:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-11-01T16:14:07Z</dc:date>
    <item>
      <title>Sum not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642122#M507696</link>
      <description>&lt;P&gt;My expression is:&amp;nbsp;num(if(PRIMARY_ASSIGNEE=CCL_RESOURCE, sum(SUB_BUILD_NP_EST_CCL),0))&lt;/P&gt;&lt;P&gt;If the&amp;nbsp;PRIMARY_ASSIGNEE = gperez016 and the DEFECT_ID is 8519, the total for this expression should be 16 but it's coming through as 320.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-01_7-54-03.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22764i6E161AD053245A84/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-01_7-54-03.jpg" alt="2019-11-01_7-54-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 14:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642122#M507696</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2019-11-01T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642149#M507697</link>
      <description>&lt;P&gt;Seems like there is a duplication problem here... adding DISTINCT helps, but might not be the best way to do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;num(if(PRIMARY_ASSIGNEE=CCL_RESOURCE, sum(DISTINCT SUB_BUILD_NP_EST_CCL),0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num(Sum(If(PRIMARY_ASSIGNEE = CCL_RESOURCE, SUB_BUILD_NP_EST_CCL)))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 16:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642149#M507697</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-01T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642202#M507698</link>
      <description>&lt;P&gt;Wouldn't distinct just count all of the numbers once? If it really was 16 for two tickets, I wouldn't want it to ignore one.&lt;/P&gt;&lt;P&gt;Each DEFECT_ID has 1 PRIMARY_ASSIGNEE but many different builders. For example, builders have a specialty like CLINDOC, CCL, CPOE, CHARGES, CORE etc...&lt;BR /&gt;Each PRIMARY_ASSIGNEE could also be 1 OR MORE builder specialty. For example, the PRIMARY_ASSIGNEE gperez016 could have CCL hours and CLINDOC hours.&lt;BR /&gt;My requirement is to show each user anytime they are listed as a primary assignee and then total the specialty hours.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 19:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642202#M507698</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2019-11-01T19:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642558#M507699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you use this expression: Count(EST_NON_PROD_BUILD_HRS) it will show that there are 20 rows with 16, so 320 it seems to be correct&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1642558#M507699</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-11-04T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not correct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1644477#M507700</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Cassandra, one trick to show everything is in the load script, use the RecNo() or RowNo() functions to put a unique value on each row, that way the Pivot Table will show every row etc.&amp;nbsp; You can use that to check things and then remove it once you are confident things are working as you want.&amp;nbsp; Hopefully the other guys can confirm this is a decent way to try double-check things as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 20:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-correct/m-p/1644477#M507700</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-11-07T20:24:26Z</dc:date>
    </item>
  </channel>
</rss>

