<?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: Differing Answers with and without SUM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325411#M1197827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you are running into here is how you are handling duplicate records in a pivot table. For more information, open QlikView and hit F1, then search 'aggr'&amp;gt;Nested Aggregations and Related Issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've modified the qvw just a little and created a Straight table which shows the duplicates and sums them correctly, and also a modified pivot table with some adjustments in the expression...I'm not sure what you are trying to do or how you want to sum across your dimensions, but I think this will set you in the right direction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 23:42:22 GMT</pubDate>
    <dc:creator>MichaelTerenzi</dc:creator>
    <dc:date>2011-05-17T23:42:22Z</dc:date>
    <item>
      <title>Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325381#M1197797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although an expert with Excel, I am relatively new to the Qlikview community - but loving the power and speed of the application. However, I am having some strange results that I do not understand . . . and they are throwing the dashboard way off course.&lt;/P&gt;&lt;P&gt;I am selecting several records and based on the number and the volume of a product, I can calculate the volume of product at a particular location - and there could be several products at the same location. But the results are not as I expected - and potentially point to me not understanding the use of SUM exactly.&lt;/P&gt;&lt;P&gt;If I use the following formula: Sum([Stock_Ledger_Detail QTYS]*[Product_Details VOLUME]) I get the incorrect answers for the product volume:&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/-4190_sourceID:4190" /&gt;&lt;/P&gt;&lt;P&gt;I exported the above data to Excel and manually multiplied the Stock Ledger Quantities by the Product Volume to show the right answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 661pt; border-collapse: collapse;" width="878"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98" /&gt;&lt;COL style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;" width="51" /&gt;&lt;COL style="width: 40pt; mso-width-source: userset; mso-width-alt: 1938;" width="53" /&gt;&lt;COL style="width: 62pt; mso-width-source: userset; mso-width-alt: 3035;" width="83" /&gt;&lt;COL style="width: 92pt; mso-width-source: userset; mso-width-alt: 4461;" width="122" /&gt;&lt;COL span="2" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98" /&gt;&lt;COL style="width: 53pt; mso-width-source: userset; mso-width-alt: 2560;" width="70" /&gt;&lt;COL style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;" width="77" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro 0.5pt solid; background-color: whitesmoke; width: 74pt; height: 12.75pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="98"&gt;&lt;STRONG&gt;Location_Details Data Source&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 38pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="51"&gt;&lt;STRONG&gt;Site_Details SITE_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 40pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="53"&gt;&lt;STRONG&gt;Location_Details LOC_STAT&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 62pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="83"&gt;&lt;STRONG&gt;Location_Details LOC_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 92pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="122"&gt;&lt;STRONG&gt;Stock_Ledger_Detail PROD_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 74pt; border-top: gainsboro 1pt solid; border-right: gainsboro 0.5pt solid;" width="98"&gt;&lt;STRONG&gt;Stock_Ledger_Detail QTYS&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl23" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; width: 74pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" width="98"&gt;&lt;STRONG&gt;Product_Details VOLUME&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="background-color: white; width: 53pt; border: gainsboro 0.5pt solid;" width="70"&gt;Available Volume&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; width: 58pt; border-top: gainsboro 0.5pt solid; border-right: gainsboro 0.5pt solid;" width="77"&gt;Product Volume&lt;/TD&gt;&lt;TD class="xl29" style="background-color: yellow; width: 48pt; border: #d4d0c8;" width="64"&gt;&lt;STRONG&gt;Correct Answer&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl29" style="background-color: yellow; width: 48pt; border: #d4d0c8;" width="64"&gt;&lt;STRONG&gt;Factor Bigger&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;GACware (Unite)&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;B2A&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;Mixed&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;VF01220&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;273988&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;28&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;0.006084&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;1.1000&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;" num="0.34070400000000001"&gt;0.3407&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=F2*G2" num="0.170352"&gt;0.170352&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=I2/J2"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;GACware (Unite)&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;B2A&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;Mixed&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;VF01220&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;273988&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;30&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;0.006084&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;1.1000&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;" num="0.73007999999999995"&gt;0.7301&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=F3*G3" num="0.18251999999999999"&gt;0.18252&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=I3/J3"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;GACware (Unite)&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;B2A&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;Mixed&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;VF01220&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;273988&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;40&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;0.006084&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;1.1000&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;" num="0.48671999999999999"&gt;0.4867&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=F4*G4" num="0.24335999999999999"&gt;0.24336&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=I4/J4"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro 0.5pt solid; background-color: white; height: 12.75pt; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;GACware (Unite)&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;B2A&lt;/TD&gt;&lt;TD class="xl24" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: white; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;Mixed&lt;/TD&gt;&lt;TD class="xl26" style="border-bottom: gainsboro 0.5pt solid; border-left: #d4d0c8; background-color: whitesmoke; border-top: gainsboro; border-right: #d4d0c8;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-bottom: gainsboro 0.5pt solid; border-left: #d4d0c8; background-color: whitesmoke; border-top: gainsboro; border-right: #d4d0c8;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-bottom: gainsboro 0.5pt solid; border-left: #d4d0c8; background-color: whitesmoke; border-top: gainsboro; border-right: #d4d0c8;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl27" style="border-bottom: gainsboro 0.5pt solid; border-left: #d4d0c8; background-color: whitesmoke; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl28" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; border-top: gainsboro; border-right: gainsboro 0.5pt solid;"&gt;&lt;STRONG&gt;1.1000&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl28" style="border-bottom: gainsboro 0.5pt solid; border-left: gainsboro; background-color: whitesmoke; border-top: gainsboro; border-right: gainsboro 0.5pt solid;" num="1.557504"&gt;&lt;STRONG&gt;1.5575&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=SUM(J2:J4)" num="0.59623199999999998"&gt;0.596232&lt;/TD&gt;&lt;TD align="right" class="xl30" style="background-color: yellow; border: #d4d0c8;" fmla="=I5/J5" num="2.6122448979591839"&gt;2.612245&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Using SUM, the answers calculated by Qlikview are a factor of either 2 or 4 larger?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I use the same as above, but drop the SUM portion, then the product volumes are correct, but I lose the sub-totals:&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/-4191_sourceID:4191" /&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me why SUM behaves like this? And yet the Available volume calculation, also using SUM, is smart enough to know that there is a single location and that the volume is not the sum of the three records, but is 1.1CBM?&lt;/P&gt;&lt;P&gt;I am lost and need some enlightenment . . . please.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325381#M1197797</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:05:34Z</dc:date>
    </item>
    <item>
      <title>Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325382#M1197798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmmm, more and more confusing . . . but I had a small pie chart that calculated the used volume and although by removing SUM from my equation, the calculated volume per line was corrected, the total of teh three lines still showed the incorrect 1.56CBM.&lt;/P&gt;&lt;P&gt;So somehow Qlikview's summing process is either being misused by me or I do not understand its application.&lt;/P&gt;&lt;P&gt;The correct sum for the shown location is as shown in Excel: 0.596232CBM. But in both cases when the location is selected, the chart is wrong . . .&lt;/P&gt;&lt;P&gt;Aaaargh, silly me - okay worked this one out - the chart is using formula with SUM to total the location and I was only changing the expression in the table. Doh! Blonde post . . . but decided to post anyway to show I am at least thinking through this problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help out there.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325382#M1197798</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:13:30Z</dc:date>
    </item>
    <item>
      <title>Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325383#M1197799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And now . . . when I go and remove the SUM from the formula on the pie chart, I get the message that "there is no data to display".&lt;/P&gt;&lt;P&gt;So clearly I need some expert guidance . . . and at the moment it is not available in Dubai . . . the support engineer is in India getting married &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325383#M1197799</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:20:10Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325384#M1197800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ian,&lt;/P&gt;&lt;P&gt;can you upload an example? That helps us to find the problem! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325384#M1197800</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-28T08:25:28Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325385#M1197801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;best wishes to your support engineer. I suppose he is luckier then you (at least for the moment).&lt;/P&gt;&lt;P&gt;To give you the needed guidance the best would be to have a litle exam app. , perhaps with anonymized (what a word) data and a textbox with your demands.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325385#M1197801</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:29:04Z</dc:date>
    </item>
    <item>
      <title>Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325386#M1197802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I also had a pie chart that calculated the number of pieces in a particular location above my pivot table. The three records clearly show amounts of 28, 30 and 40. Which in my book should equal 98 . . . but the sum formula used in the pie chart:&lt;BR /&gt;Sum([Stock_Ledger_Detail QTYS]) shows 128 . . . which I would suspect is 28+(30+30)+40?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Why are the formulae all working so strangely . . . is something not linked correctly? I am now truly stumped.&lt;/P&gt;&lt;P&gt;Thank&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325386#M1197802</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:33:18Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325387#M1197803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uum, not quite sure how to upload an example . . . I tried by cutting and pasting the image outputs from the Pivot table.&lt;/P&gt;&lt;P&gt;Let me know what I should do to upload an example . . . the dataset is large . . . it is currently 9MB with hundreds of thousands of records . . . and clearly I am in the learning phase.&lt;/P&gt;&lt;P&gt;The data I am struggling with is sucked out of a Sybase DB from about 4 different tables. I have other charts using about 40,000 lines from a single Excel worksheet working just fine.&lt;/P&gt;&lt;P&gt;I am prettu sure it is just me not knowing Qlikview well enough!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325387#M1197803</guid>
      <dc:creator />
      <dc:date>2011-04-28T08:38:16Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325388#M1197804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ian,&lt;/P&gt;&lt;P&gt;there is an option at File to save only selected data, so you can first select some data, than save this document. If you want, there is also a menupoint, to scrambling data at document properties.&lt;/P&gt;&lt;P&gt;And then here in the forum look at Option, to upload the small file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 09:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325388#M1197804</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-28T09:08:54Z</dc:date>
    </item>
    <item>
      <title>SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325389#M1197805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;1. Save a new copy of your file to not make your own work corupted&lt;/P&gt;&lt;P&gt;2. Make suitable selections to exemplify your problem, and to minimize the data/file size&lt;/P&gt;&lt;P&gt;3. Reduce the data; File &amp;gt; Reduce Data &amp;gt; Keep Possible values&lt;/P&gt;&lt;P&gt;4. Scramble dtat aif it is sensitive; Settings &amp;gt; Document Properties &amp;gt; Scrambling&lt;/P&gt;&lt;P&gt;5. Save the reduced and scrambled file.&lt;/P&gt;&lt;P&gt;6. Attach it to this thread&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 09:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325389#M1197805</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-04-28T09:27:50Z</dc:date>
    </item>
    <item>
      <title>SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325390#M1197806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, done. The interesting data is one the Location Metrics tab - currently I am not using SUM in the Location Volume by Site and Status pivot table - the calculated volume per line is now correct but the SUM is not working as can be seen by the pie chart. If the SUM expression is uncommented and the other formula is commented out, you will see the change that is confusing me.&lt;/P&gt;&lt;P&gt;You guys are brilliant - I look forward to learning exactly where my logic is flawed as I do not like illogical things . . . and this seems to be completely illogical.&lt;/P&gt;&lt;P&gt;I look forward to your response.&lt;/P&gt;&lt;P&gt;Thank&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325390#M1197806</guid>
      <dc:creator />
      <dc:date>2011-04-28T10:04:35Z</dc:date>
    </item>
    <item>
      <title>AW:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325391#M1197807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ian,&lt;/P&gt;&lt;P&gt;at first, you have &lt;STRONG&gt;&lt;EM&gt;THREE&lt;/EM&gt;&lt;/STRONG&gt; Syntetic tables!!!! That's wrong, QV does not like them! Combine fields in two tables to create a new key, so that the syntetic tables disapear!&lt;/P&gt;&lt;P&gt;second: the product_Details VOLUME is always the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325391#M1197807</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-28T10:21:30Z</dc:date>
    </item>
    <item>
      <title>AW:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325392#M1197808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martina,&lt;/P&gt;&lt;P&gt;Okay, this is great feedback - please remember this is my first application I am building and I have had no training . . . so I am as newbie as anyone gets. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I combine fields to create a new key? So for instance, $Syn 1 Table is a combination of SITE_CODE and LOC_CODE as this is what guarantees uniqueness. Can you briefly explain how to get rid of this $Syn 1 Tab? There were 7 synthetic tables when the consultant left, so I was pretty chuffed to tidy everything up and get it to 3 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Secondly, what seems to change is if you select the properties for &amp;lt;Location Volume by Site and Status&amp;gt; pivot table and then select the second expression &amp;lt;Product Volume&amp;gt;. There should be two versions of the calculation, one using sum and one without using sum. The calculation should be the sum of all quantities of the possibly various products multiplied by their individual product volume to give a total volume. I get this with no sum, but then no subtotals and the pie chart stops working. If I use the version that sums everything, I get the incorrect field values inflated by 2x or 4x the expected value. But the pie chart works - even if it is with the wrong total?&lt;/P&gt;&lt;P&gt;The same thing is happening when the individual quantities are summed - the total is wrong? Should be 98 if you look at the pivot table, but the pie chart gives it as 128? Which looks like the value of 30 may have been counted twice.&lt;/P&gt;&lt;P&gt;As I said this is my first applicaqtion and the last time I was hands on with SQL and DBs was at university over 25 years back &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; So gentleness for the old dog is requested.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 11:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325392#M1197808</guid>
      <dc:creator />
      <dc:date>2011-04-28T11:24:21Z</dc:date>
    </item>
    <item>
      <title>AW:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325393#M1197809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the formula to include the SUM and then exported the pivot table to Excel. In the highlighted yellow portion on the right, I have manually calculated the expected volumes and the difference is hightlighted. Worksheet is attached.&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 11:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325393#M1197809</guid>
      <dc:creator />
      <dc:date>2011-04-28T11:28:00Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325394#M1197810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your script could look like this:&lt;/P&gt;&lt;P&gt;Location_Details:&lt;BR /&gt;LOAD&lt;BR /&gt; // Load Table Keys&lt;BR /&gt; &lt;STRONG&gt;SITE_CODE &amp;amp; '/' &amp;amp; LOC_CODE As KeySideLocCode,&lt;BR /&gt;&lt;/STRONG&gt; SITE_CODE As [Key Site_Details SITE_CODE],&lt;BR /&gt; LOC_CODE As [Key Location_Details LOC_CODE],&lt;BR /&gt; SITE_CODE As [Key Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt; LOC_CODE As [Key Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; // Load Table Data&lt;BR /&gt; SITE_CODE As [Location_Details SITE_CODE],&lt;BR /&gt; LOC_CODE As [Location_Details LOC_CODE],&lt;BR /&gt; // A constant is imported in [Site_Details Data Source] to help troubleshoot if the same location is imported from different WMS's&lt;BR /&gt; 'GACware (Unite)' As [Location_Details Data Source],&lt;BR /&gt; LOC_DESC As [Location_Details LOC_DESC],&lt;BR /&gt; If(LOC_STAT ='M','Mixed',If(LOC_STAT='E','Empty',If(LOC_STAT ='F','Full',If(LOC_STAT ='R','Reserved',If(LOC_STAT ='P','Pickslot',If(LOC_STAT ='B','Bad',If(LOC_STAT ='','Bulk'))))))) As [Location_Details LOC_STAT],&lt;BR /&gt; AISLE As [Location_Details AISLE],&lt;BR /&gt; COLUMN As [Location_Details COLUMN],&lt;BR /&gt; HEIGHT As [Location_Details HEIGHT];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;// FROM TESTDB.dbo.LOCATION WHERE LOC_STAT&amp;lt;&amp;gt;'B';&lt;BR /&gt;FROM GACWAREDB.dbo.LOCATION WHERE LOC_STAT&amp;lt;&amp;gt;'B';&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;// ODBC CONNECT TO GACWARE_DRP (XUserId is TALLXUFMObaON, XPassword is IRcKDYFMTbcOXXJOETQA);&lt;BR /&gt;ODBC CONNECT TO GACWARE_LIVE (XUserId is RPRPXUFMObaAN, XPassword is aIfUNYFMTbcOXXJOEDZB);&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;//Location_Details:&lt;BR /&gt;LOAD&lt;BR /&gt; // Load Table Keys&lt;BR /&gt; &lt;STRONG&gt;SITE_CODE &amp;amp; '/' &amp;amp; LOC_CODE As KeySideLocCode,&lt;BR /&gt;&lt;/STRONG&gt; SITE_CODE As [Key Site_Details SITE_CODE],&lt;BR /&gt; LOC_CODE As [Key Location_Details LOC_CODE],&lt;BR /&gt; SITE_CODE As [Key Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt; LOC_CODE As [Key Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; // Load Table Data&lt;BR /&gt; SITE_CODE As [Location_Details SITE_CODE],&lt;BR /&gt; LOC_CODE As [Location_Details LOC_CODE],&lt;BR /&gt; // A constant is imported in [Site_Details Data Source] to help troubleshoot if the same location is imported from different WMS's&lt;BR /&gt; 'GACware (Dubai)' As [Location_Details Data Source],&lt;BR /&gt; LOC_DESC As [Location_Details LOC_DESC],&lt;BR /&gt; If(LOC_STAT ='M','Mixed',If(LOC_STAT='E','Empty',If(LOC_STAT ='F','Full',If(LOC_STAT ='R','Reserved',If(LOC_STAT ='P','Pickslot',If(LOC_STAT ='B','Bad',If(LOC_STAT ='','Bulk'))))))) As [Location_Details LOC_STAT],&lt;BR /&gt; AISLE As [Location_Details AISLE],&lt;BR /&gt; COLUMN As [Location_Details COLUMN],&lt;BR /&gt; HEIGHT As [Location_Details HEIGHT];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM GACWAREDB.dbo.LOCATION WHERE LOC_STAT&amp;lt;&amp;gt;'B';&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// ODBC CONNECT TO TEST_GACWARE (XUserId is NYfWZUFMObaCDYAGQZCB, XPassword is KOLMIYFMTbcOXXJOEDcB);&lt;BR /&gt;ODBC CONNECT TO GACWAREunite (XUserId is LFRLWUFMObaCDYAGQBOA, XPassword is aUdRdDNKVTcMWYYNHLMGHGFGGLZOXYEd);&lt;/P&gt;&lt;P&gt;Stock_Ledger_Detail:&lt;BR /&gt;LOAD&lt;BR /&gt; // Load Table Keys&lt;BR /&gt; &lt;STRONG&gt;SITE_CODE &amp;amp; '/' &amp;amp; LOC_CODE As KeySideLocCode,&lt;BR /&gt;&lt;/STRONG&gt;// SITE_CODE As [Key Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt;// LOC_CODE As [Key Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; PRIN_CODE As [Key Principal_Master PRIN_CODE],&lt;BR /&gt; PROD_CODE As [Key Product_Details PROD_CODE],&lt;BR /&gt; // Load Table Data&lt;BR /&gt; SITE_CODE As [Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt; LOC_CODE As [Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; PRIN_CODE As [Stock_Ledger_Detail PRIN_CODE],&lt;BR /&gt; PROD_CODE As [Stock_Ledger_Detail PROD_CODE],&lt;BR /&gt; QTYS As [Stock_Ledger_Detail QTYS];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;// FROM TESTDB.dbo.STKLED;&lt;BR /&gt;FROM GACWAREDB.dbo.STKLED;&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;// ODBC CONNECT TO GACWARE_DRP (XUserId is TALLXUFMObaON, XPassword is IRcKDYFMTbcOXXJOETQA);&lt;BR /&gt;ODBC CONNECT TO GACWARE_LIVE (XUserId is RPRPXUFMObaAN, XPassword is aIfUNYFMTbcOXXJOEDZB);&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;//Stock_Ledger_Detail:&lt;BR /&gt;LOAD&lt;BR /&gt; // Load Table Keys&lt;BR /&gt; &lt;STRONG&gt;SITE_CODE &amp;amp; '/' &amp;amp; LOC_CODE As KeySideLocCode,&lt;BR /&gt;&lt;/STRONG&gt;// SITE_CODE As [Key Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt;// LOC_CODE As [Key Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; PRIN_CODE As [Key Principal_Master PRIN_CODE],&lt;BR /&gt; PROD_CODE As [Key Product_Details PROD_CODE],&lt;BR /&gt; // Load Table Data&lt;BR /&gt; SITE_CODE As [Stock_Ledger_Detail SITE_CODE],&lt;BR /&gt; LOC_CODE As [Stock_Ledger_Detail LOC_CODE],&lt;BR /&gt; PRIN_CODE As [Stock_Ledger_Detail PRIN_CODE],&lt;BR /&gt; PROD_CODE As [Stock_Ledger_Detail PROD_CODE],&lt;BR /&gt; QTYS As [Stock_Ledger_Detail QTYS];&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM GACWAREDB.dbo.STKLED;&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 11:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325394#M1197810</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-04-28T11:48:06Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325395#M1197811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;The aim for the data model should be to have one key per table, to get simple links between tables.&lt;/P&gt;&lt;P&gt;Just as Martina exemplified, an easy way to resolve the synthetic key is to create a new key-field where the multiple keys are concatentated into one single value.&lt;/P&gt;&lt;P&gt;Looking at your model I would also recommend that you try to organise the tables to a more star like schema, instead of the chain you have now. Meaning that you have one central fact table to which you connect attribute tables. This will make Qlikview calculations quicker, and also easier for you as developer/Designer to interpret the data relations .&lt;/P&gt;&lt;P&gt;It is also highly encouraged that you take the time to look at QlikView's online training material as this will cover a lot of fundamental topics to become a QlikView pro. Working with scripts the Developer training is something that will benefit you the most.&lt;/P&gt;&lt;P&gt;http://qlik.com/training&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 12:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325395#M1197811</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-04-28T12:06:34Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325396#M1197812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martina and Toni,&lt;/P&gt;&lt;P&gt;Okay, I can see how combining the keys will get rid of the synthetic key, but how do I link back to say the Principal table so I have access to the more user friendly Principal Name as opposed to just the Principle Code?&lt;/P&gt;&lt;P&gt;Secondly, the star data model sounds far more intuitive - I have struggled for several days just to get something like that linked correctly (or so I thought). Do you have any suggestions for the changes required to turn my chain into your star? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thirdly, regardless of the changes, can anyone see the differences that seem to show up in using SUM and not using it? Or do you think this is a consequence of the synthetic keys?&lt;/P&gt;&lt;P&gt;You cannot believe how helpful you people have been - I have done some of the online training . . . clearly a little classroom training is needed, but it is not offered in the UAE.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 12:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325396#M1197812</guid>
      <dc:creator />
      <dc:date>2011-04-28T12:44:01Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325397#M1197813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;Further to my last mail, I have done as suggested by Martina and appear to have got rid of the synthetic keys . . . not sure I have completely got my head around it just yet . . . but closer.&lt;/P&gt;&lt;P&gt;I saved a slightly larger dataset this time - 3 locations - I changed the expression to include the sum of all volumes used in the location. I then exported the pivot table to Excel - added tocolumns to show what the volume x quantity should be and highlight the difference.&lt;/P&gt;&lt;P&gt;I feel like I have progressed . . . even if it is still not yielding the correct answer. So . . . next steps to narrow down the problem?&lt;/P&gt;&lt;P&gt;Thanks peeps. Much appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325397#M1197813</guid>
      <dc:creator />
      <dc:date>2011-04-28T14:00:49Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325398#M1197814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the Excel sheet as I seem to only be able to add one file and not multiple ones.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325398#M1197814</guid>
      <dc:creator />
      <dc:date>2011-04-28T14:02:46Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325399#M1197815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am quite convinced that the root cause of your problem is in the data structure. In this context you must keep in mind that QV will base it calculation work on a data set corresponding to the current selections. This data set is then the current combinations of data based on selection and the fields used in the object, so if you have one field in table A and an other in table D the relation is spread over table A-B-C-D. There is no problem to have this type of data relation in theory.&lt;/P&gt;&lt;P&gt;The problem begin in the scenario where your data does not have a logical connection over all tables. In these cases QV will start finding a way around and there by creating all possible combination of rows in the data set. Typical symptom is that your SUM operations result on larger numbers, as their are more rows in the data set. By using a Star schema you are unlikley to end up in this situation as your tables are closely related to each other. Then of course you can have several stars in your schema and tie them so together into a snow flake schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I do not have the possibility to dig deeper into your application, this is usually something directed to QlikView consultants in order to get help on the way forward with app development.&lt;/P&gt;&lt;P&gt;Find more details about consulting at qlik.com &amp;gt; Services &amp;gt; Consulting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325399#M1197815</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-04-28T14:23:24Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:AW:Re: AW:Re: Differing Answers with and without SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325400#M1197816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian&lt;/P&gt;&lt;P&gt;I seem to be having the same issue when it comes to averaging some data ,&lt;/P&gt;&lt;P&gt;Totally think its my data structured, did you get resolve for your query ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-Answers-with-and-without-SUM/m-p/325400#M1197816</guid>
      <dc:creator />
      <dc:date>2011-04-28T17:03:16Z</dc:date>
    </item>
  </channel>
</rss>

