<?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 Odd results from Sum, possibly from table joins in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Odd-results-from-Sum-possibly-from-table-joins-in-script/m-p/304170#M588443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured this out after using Count on my IDs to see how many lines I was getting out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out my initial load was returning a record for every row in the database and adding between 9 - 14 rows of data for that ID. Resolved this by changing the load to load distinct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 07:32:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-17T07:32:32Z</dc:date>
    <item>
      <title>Odd results from Sum, possibly from table joins in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Odd-results-from-Sum-possibly-from-table-joins-in-script/m-p/304169#M588442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fairly new to Qlikview and I'm attempting to create a simple report from an oddly structured database.&lt;/P&gt;&lt;P&gt;The database itself has a series of dynamic types for each ID, and then a value against these types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I'm getting the&amp;nbsp; ids, types and values then creating a table in my script based on the "type" description so I can put the types into columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put some of the results under my "calculations" tab and these appear to be coming through right.&lt;/P&gt;&lt;P&gt;For example: An Asset of DZ515 has an "Hours" value of 5 and a "Loads" value of 20. &lt;/P&gt;&lt;P&gt;However when I create a column that sums up the hours or loads, the value seems to be multipled and incorrect. I have a feeling this stems from how my table is Joined together in the script and would appreciate any suggestions on how to solve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qlikview file is attached, thanks for any input! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 05:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Odd-results-from-Sum-possibly-from-table-joins-in-script/m-p/304169#M588442</guid>
      <dc:creator />
      <dc:date>2011-05-17T05:06:08Z</dc:date>
    </item>
    <item>
      <title>Odd results from Sum, possibly from table joins in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Odd-results-from-Sum-possibly-from-table-joins-in-script/m-p/304170#M588443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured this out after using Count on my IDs to see how many lines I was getting out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out my initial load was returning a record for every row in the database and adding between 9 - 14 rows of data for that ID. Resolved this by changing the load to load distinct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 07:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Odd-results-from-Sum-possibly-from-table-joins-in-script/m-p/304170#M588443</guid>
      <dc:creator />
      <dc:date>2011-05-17T07:32:32Z</dc:date>
    </item>
  </channel>
</rss>

