<?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: Join Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498723#M692838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Do you have an idea how to solve this problem? Can I use another join, so that e.g. Apple is not joined and only banana &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ??&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, you can probably create a modified table2 with a distinct ID, where you have to decide which Group value to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But have you tried, not joining the tables, instead keep them just linked / associated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 14:11:41 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-09T14:11:41Z</dc:date>
    <item>
      <title>Join Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498722#M692837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question to the topic: "Join".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables which look like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1212&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17,40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1213&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15,30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1214&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28,30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1212&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Banana&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1212&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1213&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lemon&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I joined table2 with "left join" into table1.&lt;/P&gt;&lt;P&gt;My problem is, that after the joining the ID 1212 will be doubled as there are two groups (Banana and Apple) possible. Now if I sum the prices of the different IDs, the result of ID 1212 is wrong cause of the problem.(17,40 +17,40)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea how to solve this problem? Can I use another join, so that e.g. Apple is not joined and only banana &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further information, just let me know!&lt;/P&gt;&lt;P&gt;Thank you for helping!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498722#M692837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-09T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Join Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498723#M692838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Do you have an idea how to solve this problem? Can I use another join, so that e.g. Apple is not joined and only banana &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ??&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, you can probably create a modified table2 with a distinct ID, where you have to decide which Group value to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But have you tried, not joining the tables, instead keep them just linked / associated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498723#M692838</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-09T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Join Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498724#M692839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;EM&gt;left keep&lt;/EM&gt;&amp;nbsp; instead of &lt;EM&gt;left join&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using a different aggregation function. For example avg(Price) instead of sum(Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load ID, Price&lt;/P&gt;&lt;P&gt;from &lt;EM&gt;source1&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load ID, firstvalue(Group) as Group&lt;/P&gt;&lt;P&gt;from &lt;EM&gt;source2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;group by ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498724#M692839</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-09T14:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Join Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498725#M692840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You should create a unique key in table 2 and use that in table 1. Another idea is to create a super group and add the column "group" as a description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;super group&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;description&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1212&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Banana-Apple&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bananas and apples&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1213&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lemon-Oranges&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lemon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498725#M692840</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-09-09T14:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Join Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498726#M692841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your answers.&lt;/P&gt;&lt;P&gt;The "left keep" didn't work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-Problem/m-p/498726#M692841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-09T14:39:22Z</dc:date>
    </item>
  </channel>
</rss>

