<?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 joining problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258052#M707146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;In addition to Erica, You can first Inner Join two tables A and B on Key C and then Aggregate the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Section,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;From A.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Sales,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;From B.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Section,&lt;/P&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group By Section;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 06:19:38 GMT</pubDate>
    <dc:creator>vijay_iitkgp</dc:creator>
    <dc:date>2012-01-09T06:19:38Z</dc:date>
    <item>
      <title>joining problem</title>
      <link>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258050#M707144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview. Here you go my question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created two QVD files A &amp;amp; B the joining key is C, so now I wanted to join these two table and create subset. Below is the SQL code for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select A.section,sum(B.sales) from A inner join B ON a.c=b.c Group by A.section;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me to create same query in Qlikview assuming we have two QVD's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joyking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 04:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258050#M707144</guid>
      <dc:creator />
      <dc:date>2012-01-07T04:29:56Z</dc:date>
    </item>
    <item>
      <title>joining problem</title>
      <link>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258051#M707145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy, welcome to the world of QlikView!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview, the way things are done is different to SQL. you load the tables one at a time, chopping changing them as you load more information and then in the final document the joins are performed dynamically using fields that share &lt;EM&gt;exactly&lt;/EM&gt; the same name. The resulting data set when displayed in a document is like looking at a "full outer" join as everything is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want to do looks like you want to end up with a final table that is an intersection of A and B (only where they share the same C) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to do this, you need to load one table, then join using the inner join() command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; A,&lt;/P&gt;&lt;P&gt;A2,&lt;/P&gt;&lt;P&gt;C,&lt;/P&gt;&lt;P&gt; from C:\Qlikview\A.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;B,&lt;/P&gt;&lt;P&gt;B2,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;from C:\Qlikview\A.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 will now only contain the following: A,A2,C,B,B2 where the two tables shared a C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a "keep" statement, see the helpfile for more exaplanation &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 07:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258051#M707145</guid>
      <dc:creator />
      <dc:date>2012-01-07T07:55:04Z</dc:date>
    </item>
    <item>
      <title>joining problem</title>
      <link>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258052#M707146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;In addition to Erica, You can first Inner Join two tables A and B on Key C and then Aggregate the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Section,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;From A.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Sales,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;From B.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Section,&lt;/P&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group By Section;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 06:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/joining-problem/m-p/258052#M707146</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-09T06:19:38Z</dc:date>
    </item>
  </channel>
</rss>

