<?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: Joining Two Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072484#M358121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to figure out which is the Master Table and Transaction table. Normally Master table has unique records or the transaction table has many line items.&lt;/P&gt;&lt;P&gt;If you join the table be careful about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do the mapping if possible into transaction table.&lt;/P&gt;&lt;P&gt;2. Map with the master table with different tables (Masters) to the Fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 08:59:29 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2016-03-15T08:59:29Z</dc:date>
    <item>
      <title>Joining Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072481#M358118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day All, something that should be simple is really giving me a headache right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to join two tables with the one table consisting of 132 996 records while the other file has 188 031 records. I am using the table with the first number of records (&lt;SPAN style="font-size: 13.3333px;"&gt;132 996&lt;/SPAN&gt;) as the primary table and left joining the second table onto it, however the number of records I am supposed to get is way higher than expected. Vlookup on excel reveals that only 110000 off 188031 records actually appear onto the first table from the second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a single column matches both tables and I expect the match to be made utilizing that particular column however when I pull the number of records on qlikview there are 179 425 results at the end while I was expecting 132 996 which is from the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code and attached is the table viewer image as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD APPStatus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contract_Ref_no AS [Contr_Code],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start_Day],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start_Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status_cd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title_cd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; race_type_cd As Race,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gender,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Language_cd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employ_status_cd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No_of_years,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No_of_months,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; job_title,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; employer_name&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[BMW Consolidated SF Data 10032016.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [BMW (45)]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory&lt;/P&gt;&lt;P&gt;Left Join [BMW (45)];&lt;/P&gt;&lt;P&gt;LOAD DealRef AS [Contr_Code],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewUsed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AssetCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AssetDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChasNr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RegYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResAmt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AmtBorrow,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EvenPay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DealLength,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F13,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Surname,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Initials&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Demographica Portfolio Info V3 Data Tab.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Demographica Portfolio Info V3 ]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed unnecessary fields in this cpode above to give you a clear indication of what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="118012" alt="table viewer.png" class="jive-image image-1" src="/legacyfs/online/118012_table viewer.png" style="height: 373px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know why there is such a higher number of records when I was expecting only 132 &lt;SPAN style="font-size: 13.3333px;"&gt;996 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072481#M358118</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-03-15T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072482#M358119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you happen to have duplicates in the fields you are joining on? Contr_Code? That would explain a number higher than original table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072482#M358119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-15T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072483#M358120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a record in your left table there could be multiple records in the secondary table. When you join the tables you get more records in the final table than you had in the original left table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072483#M358120</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-15T08:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072484#M358121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to figure out which is the Master Table and Transaction table. Normally Master table has unique records or the transaction table has many line items.&lt;/P&gt;&lt;P&gt;If you join the table be careful about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do the mapping if possible into transaction table.&lt;/P&gt;&lt;P&gt;2. Map with the master table with different tables (Masters) to the Fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072484#M358121</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-03-15T08:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Two Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072485#M358122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys thanks for your quick response yes there are duplicates since one person might have, multiple contracts with our client, so that's the issue cause I just created a quick table to see which &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Contr_Code appeared more than once in the second table&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its a data problem once again, sorry guys I'll make sure I check my data prior to posting anymore questions I panicked prior to having my data checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for your help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 09:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-Two-Tables/m-p/1072485#M358122</guid>
      <dc:creator>kaygee28</dc:creator>
      <dc:date>2016-03-15T09:26:16Z</dc:date>
    </item>
  </channel>
</rss>

