<?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 column during load from two QVDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229231#M81184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use a left join instead of a simple join. This way you will get the country for only those clients present in the client table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Oct 2010 00:22:47 GMT</pubDate>
    <dc:creator>syed_muzammil</dc:creator>
    <dc:date>2010-10-07T00:22:47Z</dc:date>
    <item>
      <title>Sum column during load from two QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229230#M81183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to get the total volume for all clients in a given country, but I need to have it stored seperately from the individual volume records because these will get reduced by the visibility, but in order to work out volumes as a percentage I still need to have the total for a country available. The client information is stored in a seperate QVD to the trade information, so I need to first of all store the trade information, then join it to the client information, and do a group by country sum. My code at the moment looks like the following:&lt;/P&gt;&lt;P&gt;Client:&lt;BR /&gt;LOAD CLIENT_ID as [Sales Client ID_],&lt;BR /&gt; Client.COUNTRY,&lt;BR /&gt;FROM Client.qvd (qvd);&lt;/P&gt;&lt;P&gt;Join (Client)&lt;BR /&gt;LOAD [$ Volume],&lt;BR /&gt; [Sales Client ID_]&lt;BR /&gt;FROM CT_FX0.QVD] (qvd);&lt;/P&gt;&lt;P&gt;Join (Client)&lt;BR /&gt;LOAD [$ Volume],&lt;BR /&gt; [Sales Client ID_]&lt;BR /&gt;FROM CT_CEX.QVD (qvd);&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt; [Sales Client Country],&lt;BR /&gt; sum([$ Volume]) AS CountryTotal&lt;BR /&gt;RESIDENT Client&lt;BR /&gt;Group By [Sales Client Country];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine when I only load trade data from one QVD, but when I load it from both, I get lots of null countries atributed to whichever loads second. How do I get round this? Is there a neat way of loading trade information from lots of different QVDs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 11:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229230#M81183</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-10-06T11:07:29Z</dc:date>
    </item>
    <item>
      <title>Sum column during load from two QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229231#M81184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use a left join instead of a simple join. This way you will get the country for only those clients present in the client table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 00:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229231#M81184</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-10-07T00:22:47Z</dc:date>
    </item>
    <item>
      <title>Sum column during load from two QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229232#M81185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first Join will add the field [$ Volume]. That field will then become a matching field in the second join, which I'm sure is undesirable.&lt;/P&gt;&lt;P&gt;Instead load both volume files first and then join.&lt;/P&gt;&lt;P&gt;Volume:&lt;BR /&gt;LOAD * FROM CT_FX0.QVD] (qvd);&lt;BR /&gt;LOAD * FROM CT_CEX.QVD (qvd);&lt;/P&gt;&lt;P&gt;JOIN (Client) LOAD * RESIDENT Volume;&lt;BR /&gt;DROP TABLE Volume;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 00:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-column-during-load-from-two-QVDs/m-p/229232#M81185</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-10-07T00:38:05Z</dc:date>
    </item>
  </channel>
</rss>

