<?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 Quick question about sum function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255680#M96764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, thanks for your reply. The thing is that I can't upload the whole file cos there are a lot of confidential data.&lt;/P&gt;&lt;P&gt;Anyway, what I dont understand is that if I show all the values I want to sum up, it is OK (as you can see as follows) but if I use the function sum just to see the grand total, the result is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿EventId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RISK REVENUE&amp;nbsp; AMOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;76672&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50&lt;/P&gt;&lt;P&gt;176674&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50&lt;/P&gt;&lt;P&gt;176671&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00&lt;/P&gt;&lt;P&gt;176673&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the sum function I get the value 11.913.615 which is really really far away from the correct result $113.463&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2011 10:40:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-15T10:40:21Z</dc:date>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255669#M96753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, I am trying to sum all the values that match one specific condition but I can sort it out. If first I show all the values I want to sum it is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿EventId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RISK REVENUE&amp;nbsp; AMOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;76672&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50 &lt;/P&gt;&lt;P&gt; 176674&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50 &lt;/P&gt;&lt;P&gt; 176671&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00 &lt;/P&gt;&lt;P&gt; 176673&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the dimension EventId and this expression: &lt;/P&gt;&lt;P&gt;= IF( (IsNull(NewEventDescription)=0 OR IsNull(NewProjectManager)=0 OR IsNull(NewProjectName)=0 OR IsNull(NewServiceLine)=0 OR IsNull(NewTaskNumber)=0 OR IsNull(NewProjectNumber)=0 OR IsNull(NewEventDate)=0 OR IsNull(NewProjectDescription)=0 OR IsNull(NewTaskName)=0 OR IsNull(NewRevValue)=0 OR IsNull(NewBillValue)=0 OR IsNull(NewCustomerName)=0 OR isnull(DateNewLineAdded)=0 ) AND EventDate&amp;gt;QuarterStart(TodayDate) AND EventDate&amp;lt;QuarterEnd(TodayDate) AND RevenueFlag='N' AND BilledFlag='N' AND ProjectManager='David Williams',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(ProjectedRevenue)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I use the sum function it prints a result doesnt make any sense cos it doesnt show the total that should be $113.463:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EventId&amp;nbsp; RISK REVENUE&amp;nbsp; AMOUNT &lt;/P&gt;&lt;P&gt; 176672&amp;nbsp; $1,759,205.00 &lt;/P&gt;&lt;P&gt; 176671&amp;nbsp; $2,212,000.00 &lt;/P&gt;&lt;P&gt; 176674&amp;nbsp; $3,518,410.00 &lt;/P&gt;&lt;P&gt; 176673&amp;nbsp; $4,424,000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the dimension EventId and this expression (the same than before but with the sum function at the begining:&lt;/P&gt;&lt;P&gt;= sum(IF( (IsNull(NewEventDescription)=0 OR IsNull(NewProjectManager)=0 OR IsNull(NewProjectName)=0 OR IsNull(NewServiceLine)=0 OR IsNull(NewTaskNumber)=0 OR IsNull(NewProjectNumber)=0 OR IsNull(NewEventDate)=0 OR IsNull(NewProjectDescription)=0 OR IsNull(NewTaskName)=0 OR IsNull(NewRevValue)=0 OR IsNull(NewBillValue)=0 OR IsNull(NewCustomerName)=0 OR isnull(DateNewLineAdded)=0 ) AND EventDate&amp;gt;QuarterStart(TodayDate) AND EventDate&amp;lt;QuarterEnd(TodayDate) AND RevenueFlag='N' AND BilledFlag='N' AND ProjectManager='David Williams',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(ProjectedRevenue)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt selected the option "Full accumulation" in Expressions tab.&lt;/P&gt;&lt;P&gt;Could you please tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 08:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255669#M96753</guid>
      <dc:creator />
      <dc:date>2011-08-08T08:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255670#M96754</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;If you use a straight table, you have to do the "sum of rows" in expression tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6338" alt="capture.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/6338_capture.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 09:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255670#M96754</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-08-08T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255671#M96755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. The thing is that I want to show only the total sum of those values, not the whole table.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 09:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255671#M96755</guid>
      <dc:creator />
      <dc:date>2011-08-08T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255672#M96756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to remove your dimension "Event ID"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 09:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255672#M96756</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-08-08T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255673#M96757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your quick answer. If I do that, using a straight table I get the value 11.913.615 (that is wrong cos it should be $113.463). That number seems to be the sum of all of the other wrong values I get when I use the sum function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EventId&amp;nbsp; RISK REVENUE&amp;nbsp; AMOUNT&lt;/P&gt;&lt;P&gt;176672&amp;nbsp; $1,759,205.00&lt;/P&gt;&lt;P&gt;176671&amp;nbsp; $2,212,000.00&lt;/P&gt;&lt;P&gt;176674&amp;nbsp; $3,518,410.00&lt;/P&gt;&lt;P&gt;176673&amp;nbsp; $4,424,000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 10:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255673#M96757</guid>
      <dc:creator />
      <dc:date>2011-08-08T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255674#M96758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, it is still wrong cos the total should be $113.463 , not 11.913.615&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 15:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255674#M96758</guid>
      <dc:creator />
      <dc:date>2011-08-10T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255675#M96759</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;I suggest that you post your model or a sample thereof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 18:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255675#M96759</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-10T18:41:28Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255676#M96760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yomarcos2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to use Sum(Total Column1) like this you get total value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 18:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255676#M96760</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-08-10T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255677#M96761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi its.anandrjs, with Column1 you mean the EventId? If so, I need to sum "Risk revenue amount", not EventId.&lt;/P&gt;&lt;P&gt;I tried to do sum(total RiskRevenueAmount) but it didnt work either, i got the message "No data to display".&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255677#M96761</guid>
      <dc:creator />
      <dc:date>2011-08-11T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255678#M96762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/jontyd" id="jive-132291488648225494404" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;Jonathan Dienst&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/A&gt;, this is my DB model, basically I look every row identified by "EventId", and if the fields in that row meet my conditions I want to get the ProjectedRevenue value (in table TblERPData) and add it up to the one I got previously to get the total amount, I mean to sum up all the ProjectedRevenue's that meet my conditions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DB model.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6439_DB+model.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS A LOT!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255678#M96762</guid>
      <dc:creator />
      <dc:date>2011-08-11T10:03:06Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255679#M96763</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;I actually meant to post your QVW file, or at least a sample from it. But looking at your model diagram, I am concerned abou the numbr of synthetic keys that are being generated. While they are not inherently "bad", they often indicate flaws in the model (ie unintended links, with hard to interpret consequences)). If it were my model, I would review the design carefully to ensure that this is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the diagram does not help me get much closer to the problem in your original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2011 20:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255679#M96763</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-14T20:30:16Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255680#M96764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, thanks for your reply. The thing is that I can't upload the whole file cos there are a lot of confidential data.&lt;/P&gt;&lt;P&gt;Anyway, what I dont understand is that if I show all the values I want to sum up, it is OK (as you can see as follows) but if I use the function sum just to see the grand total, the result is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿EventId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RISK REVENUE&amp;nbsp; AMOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;76672&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50&lt;/P&gt;&lt;P&gt;176674&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $25,131.50&lt;/P&gt;&lt;P&gt;176671&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00&lt;/P&gt;&lt;P&gt;176673&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $31,600.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the sum function I get the value 11.913.615 which is really really far away from the correct result $113.463&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 10:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255680#M96764</guid>
      <dc:creator />
      <dc:date>2011-08-15T10:40:21Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255681#M96765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, I reduced the data of my file so I can post it here, it is the file in My Documents called "&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2309" style="font-size: 1.1111em; color: #007fc0;"&gt;R&amp;amp;B Tracker dashboard_v6env.qvw&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;I realized that the result I obtain it comes from multiplying the Revenue value in each EventId by 70 or 140, but it shouldnt be like that (you can see this on "Table1 Correct"). I dont know why it counts 70 times the same EventId cos in my files that EventId it is only once or maybe 3 times if I count all the tables, but not 70 times. It should multitply the Revenue value in each row by 1 to get the correct result.&lt;/P&gt;&lt;P&gt;Can you have a look to see whats wrong?&lt;/P&gt;&lt;P&gt;Thanks a lot !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 10:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255681#M96765</guid>
      <dc:creator />
      <dc:date>2011-08-17T10:09:23Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255682#M96766</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;For some reason I am getting an access denied message when I try to open your document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 09:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255682#M96766</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-21T09:42:48Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255683#M96767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;yomarcos2 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that the result I obtain it comes from multiplying the Revenue value in each EventId by 70 or 140, but it shouldnt be like&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is could be due to the composite key, but it could also be an error in your load script. Does any table have 70 rows during or after the load? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need a&lt;EM&gt; LOAD Distinct&lt;/EM&gt; one ot more tables in your script. And check the fields in your joins to ensure that you are not performing a cross join by accident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 09:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255683#M96767</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-21T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255684#M96768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to jump in but like Jonathan I think you really need to review your data model first.&amp;nbsp; Far too many synthetic keys in my opinion and proabably too many tables as well - try joining some into eachother or use ApplyMap() to reduce your joins and simplify the whole thing.&amp;nbsp; Then it may be easier to help you answer the specific question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 12:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255684#M96768</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-08-21T12:02:05Z</dc:date>
    </item>
    <item>
      <title>Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255685#M96769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi people, I dont know why the .qvw disappeared from My documents, and now I cant upload files anymore... Where can I upload the file so you can all see the document?&lt;/P&gt;&lt;P&gt;I dont have any table with 70 rows of the same EventId.&lt;/P&gt;&lt;P&gt;I didnt use any JOIN cos Im just extracting the tables from an Excel and Acess document.&lt;/P&gt;&lt;P&gt;Thanks all of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255685#M96769</guid>
      <dc:creator />
      <dc:date>2011-08-22T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255686#M96770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;yomarcos2 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi people, I dont know why the .qvw disappeared from My documents, and now I cant upload files anymore... Where can I upload the file so you can all see the document?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just attach it to your post. Cick "Use advanced editor' in the top right corner of the Add reply box and then click "Attach Files".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 19:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255686#M96770</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-22T19:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255687#M96771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jonathan. Here you can find attached the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 07:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255687#M96771</guid>
      <dc:creator />
      <dc:date>2011-08-23T07:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Quick question about sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255688#M96772</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;After looking at your model here are my comments:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the context of your model design, the "wrong" answer is correct (11,913,615). This is because the first two eventIDs have 70 replicates - 70x the Projected Revenue your display because you used ProjectedRevenue instead of Sum(ProjectedRevenue) in your expression. The next two eventIDs have 140 replicates. This could be due to the implicit joins you create by loading the way you have, or it could be a problem with your source data.&lt;/LI&gt;&lt;LI&gt;ProjectedRevenue is on the composite keys Syn11, Syn8 and Syn7. Having metrics on keys is asking for trouble! It is beyond me to untangle this. &lt;/LI&gt;&lt;LI&gt;Perhaps you need to start with a much simpler model and build it step by step.You cannot (or rather should not) build a qilikviw model by dumping a whole lot of tables to a model and hope that it will work, The model needs to be designed to fulfill a purpose, with consideration of what fact tables, metrics and dimensions are needed to achieve the design objectives. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some suggestions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Decide on the dimensions (eg date, project manager, business unit (hierarchy), etc)&lt;/LI&gt;&lt;LI&gt;Consider each table in your source and decide which are needed most,and start with those.&lt;/LI&gt;&lt;LI&gt;Organise your tables into a star or snowflake structure with the facts (metrics) in the fact tableat the central node, and the dimensions linked to the fact table&lt;/LI&gt;&lt;LI&gt;Seperate the project level data, the event level data, task level data and the business unit heirarchy level data. At the moment its all mixed up.&lt;/LI&gt;&lt;LI&gt;More generally, separate the dimensions from the facts&lt;/LI&gt;&lt;LI&gt;Simplify the structure by joining tables. For example, all the Syn9 tables should be joined into a single table like this:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Changes:&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TblChangedEventDates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Changes) &lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TblChBillTodayEventsRecord;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Changes) &lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TblChRevTodayEventsRecord;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Then try to merge the New and ERPData&amp;nbsp; tables together&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not sure how to do this, consider hiring a QV professional consultant to assist in getting the project going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 18:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-sum-function/m-p/255688#M96772</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-08-23T18:54:13Z</dc:date>
    </item>
  </channel>
</rss>

