<?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 sum formula doesn't work?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156314#M32213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;this might be a very normal thing but i can't get my head around it....&lt;/P&gt;&lt;P&gt;i have a fact table with a lot of data (form a hospital), if i select a single patient and a specific activity there remains only 1 record.&lt;BR /&gt;That record contains the field "amount" and for this specific patient-activity that reads 1, but if i add the formula sum(amount) it is 2...!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3774_sourceID:3774" /&gt;&lt;BR /&gt;(Versec_AANTAL = amount)&lt;/P&gt;&lt;P&gt;Is this because there is a relation with another table 1 on N?&lt;/P&gt;&lt;P&gt;help is appriciated!&lt;/P&gt;&lt;P&gt;greetz,&lt;/P&gt;&lt;P&gt;david&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 10:35:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-11T10:35:11Z</dc:date>
    <item>
      <title>sum formula doesn't work?!</title>
      <link>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156314#M32213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;this might be a very normal thing but i can't get my head around it....&lt;/P&gt;&lt;P&gt;i have a fact table with a lot of data (form a hospital), if i select a single patient and a specific activity there remains only 1 record.&lt;BR /&gt;That record contains the field "amount" and for this specific patient-activity that reads 1, but if i add the formula sum(amount) it is 2...!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3774_sourceID:3774" /&gt;&lt;BR /&gt;(Versec_AANTAL = amount)&lt;/P&gt;&lt;P&gt;Is this because there is a relation with another table 1 on N?&lt;/P&gt;&lt;P&gt;help is appriciated!&lt;/P&gt;&lt;P&gt;greetz,&lt;/P&gt;&lt;P&gt;david&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 10:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156314#M32213</guid>
      <dc:creator />
      <dc:date>2011-03-11T10:35:11Z</dc:date>
    </item>
    <item>
      <title>sum formula doesn't work?!</title>
      <link>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156315#M32214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;My guess would be that you have a duplicate record here. The field reference Versec_AANTAL returns the value 1 because both records have that value, but the sum adds them together.&lt;/P&gt;&lt;P&gt;The duplicates could be coming from your source data, or may have been caused during a join in the load script, or due to a relationship in your data - hard to say without seeing your model (or a representative sample)&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 11:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156315#M32214</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-11T11:27:58Z</dc:date>
    </item>
    <item>
      <title>sum formula doesn't work?!</title>
      <link>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156316#M32215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;thx for your reply, i made a change in my script, the last reload is now a distinct load..&lt;BR /&gt;(the data contains a unique number)&lt;/P&gt;&lt;P&gt;the problem i mentionod is now solved (for this patient) but the totals aren't right yet but i'll try finding out if the other suggestions you made are also causing trouble for me...&lt;/P&gt;&lt;P&gt;thx!&lt;/P&gt;&lt;P&gt;david&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 12:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156316#M32215</guid>
      <dc:creator />
      <dc:date>2011-03-11T12:56:47Z</dc:date>
    </item>
    <item>
      <title>sum formula doesn't work?!</title>
      <link>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156317#M32216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found the other problem but i'll post a new post because it's a different problem.&lt;/P&gt;&lt;P&gt;thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 12:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-formula-doesn-t-work/m-p/156317#M32216</guid>
      <dc:creator />
      <dc:date>2011-03-11T12:59:12Z</dc:date>
    </item>
  </channel>
</rss>

