<?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 Left Join from Spreadsheet Fails (Succeeds from QVD or Resident) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-from-Spreadsheet-Fails-Succeeds-from-QVD-or-Resident/m-p/1199803#M386521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have spent the last 24 hours trying to debug and then understand a strange issue I have been experiencing in my QVW script.&amp;nbsp; Now that I feel I understand the issue enough to recreate and solve it, I feel I ought to share my findings in an effort to help others.&amp;nbsp; I also feel as though some of you may have deeper knowledge and experience in this area which could further enlighten me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a data set, a large fact table, which has about 70 fields already.&amp;nbsp; I need to add about 20 more fields in order to use the new fields in calculations involving many of the pre-existing fields.&amp;nbsp; When I attempt a LEFT JOIN of these 20 additional fields directly from the Excel spreadsheet load I do not get any errors.&amp;nbsp; Nevertheless, I get few and sometimes no actual joins.&amp;nbsp; The new 20 fields become a part of the data set, but they are mostly empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Double Checking&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I checked my primary key in many different ways and it was good.&amp;nbsp; I even replicated my LEFT JOIN statement, aliased the fields differently, and used that statement to create a new test table (keeping the same key).&amp;nbsp; I was able to select values in either the main table or the new test table and those selections caused expected corresponding filters to be applied to both tables.&amp;nbsp; Observing this, I knew that my primary key was perfectly constructed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solving the Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After observing the behavior of the test table, I decided to comment out all of my LEFT JOIN statements which loaded directly from the Excel spreadsheets and work with the test table.&amp;nbsp; I altered the aliases to what I originally wished the fields to be name.&amp;nbsp; I added a LEFT JOIN on a RESIDENT load of the test table and I dropped the test table afterwards.&amp;nbsp; This solved my problem.&amp;nbsp; I was now left with a main data set having all 90 fields and the new 20 fields all had data in them.&amp;nbsp; I switched back between this solution and the original problem script multiple times to prove the issue and solution to myself and to review it to colleagues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternative Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Later, just before writing this, I decided to load the Excel spreadsheet data into a QVD first.&amp;nbsp; I then attempted a direct LEFT JOIN during the QVD load.&amp;nbsp; As I suspected, this also solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A LEFT JOIN during an Excel load I has serious data issues (few or no joins).&lt;/LI&gt;&lt;LI&gt;A load from Excel to a temporary table, followed by a LEFT JOIN of a RESIDENT load of the temp table produces great results.&lt;/LI&gt;&lt;LI&gt;A LEFT JOIN during a QVD load produces great results&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this issue?&amp;nbsp; Is the general guidance to avoid any JOIN behaviors during an Excel load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 14:36:19 GMT</pubDate>
    <dc:creator>justaqlikker</dc:creator>
    <dc:date>2016-10-28T14:36:19Z</dc:date>
    <item>
      <title>Left Join from Spreadsheet Fails (Succeeds from QVD or Resident)</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-from-Spreadsheet-Fails-Succeeds-from-QVD-or-Resident/m-p/1199803#M386521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have spent the last 24 hours trying to debug and then understand a strange issue I have been experiencing in my QVW script.&amp;nbsp; Now that I feel I understand the issue enough to recreate and solve it, I feel I ought to share my findings in an effort to help others.&amp;nbsp; I also feel as though some of you may have deeper knowledge and experience in this area which could further enlighten me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a data set, a large fact table, which has about 70 fields already.&amp;nbsp; I need to add about 20 more fields in order to use the new fields in calculations involving many of the pre-existing fields.&amp;nbsp; When I attempt a LEFT JOIN of these 20 additional fields directly from the Excel spreadsheet load I do not get any errors.&amp;nbsp; Nevertheless, I get few and sometimes no actual joins.&amp;nbsp; The new 20 fields become a part of the data set, but they are mostly empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Double Checking&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I checked my primary key in many different ways and it was good.&amp;nbsp; I even replicated my LEFT JOIN statement, aliased the fields differently, and used that statement to create a new test table (keeping the same key).&amp;nbsp; I was able to select values in either the main table or the new test table and those selections caused expected corresponding filters to be applied to both tables.&amp;nbsp; Observing this, I knew that my primary key was perfectly constructed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solving the Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After observing the behavior of the test table, I decided to comment out all of my LEFT JOIN statements which loaded directly from the Excel spreadsheets and work with the test table.&amp;nbsp; I altered the aliases to what I originally wished the fields to be name.&amp;nbsp; I added a LEFT JOIN on a RESIDENT load of the test table and I dropped the test table afterwards.&amp;nbsp; This solved my problem.&amp;nbsp; I was now left with a main data set having all 90 fields and the new 20 fields all had data in them.&amp;nbsp; I switched back between this solution and the original problem script multiple times to prove the issue and solution to myself and to review it to colleagues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternative Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Later, just before writing this, I decided to load the Excel spreadsheet data into a QVD first.&amp;nbsp; I then attempted a direct LEFT JOIN during the QVD load.&amp;nbsp; As I suspected, this also solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A LEFT JOIN during an Excel load I has serious data issues (few or no joins).&lt;/LI&gt;&lt;LI&gt;A load from Excel to a temporary table, followed by a LEFT JOIN of a RESIDENT load of the temp table produces great results.&lt;/LI&gt;&lt;LI&gt;A LEFT JOIN during a QVD load produces great results&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this issue?&amp;nbsp; Is the general guidance to avoid any JOIN behaviors during an Excel load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 14:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-from-Spreadsheet-Fails-Succeeds-from-QVD-or-Resident/m-p/1199803#M386521</guid>
      <dc:creator>justaqlikker</dc:creator>
      <dc:date>2016-10-28T14:36:19Z</dc:date>
    </item>
  </channel>
</rss>

