<?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 Merging two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224782#M77145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by joining the two tables together, then re-loading them accounting for nulls in the age field.&lt;/P&gt;&lt;P&gt;You'll need to drop your temp table afterwards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;File1:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name&lt;BR /&gt;Abel&lt;BR /&gt;Jackson&lt;BR /&gt;Peter&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name, Age&lt;BR /&gt;Abel, 36&lt;BR /&gt;Jackson, 46&lt;BR /&gt;];&lt;BR /&gt;SecondLoad:&lt;BR /&gt;LOAD&lt;BR /&gt;Name,&lt;BR /&gt;IF(isnull(Age), 18, Age) AS Age&lt;BR /&gt;RESIDENT File1;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 19:52:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-15T19:52:11Z</dc:date>
    <item>
      <title>Merging two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224780#M77143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a solution to this problem:&lt;/P&gt;&lt;P&gt;File1:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name&lt;BR /&gt;Abel&lt;BR /&gt;Jackson&lt;BR /&gt;Peter&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;File2:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name, Age&lt;BR /&gt;Abel, 36&lt;BR /&gt;Jackson, 46&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;File1 contains the names. File2 contains the names and the ages. In File1, Peter does not have a corresponding record in File2, so I don't know his age. In this example, I'd like to default Peter's age to 18 and still be able to display the three names as follows:&lt;/P&gt;&lt;P&gt;Name Age&lt;BR /&gt;Wilson 36&lt;BR /&gt;Jackson 46&lt;BR /&gt;Peter 18&lt;/P&gt;&lt;P&gt;The script above results in two tables and a key on the Name field. Putting the results on the designer shows all the names, except that Peter's age is null. I don't want to use an IF statement in the expression to default the name because then I can't use the default age as an option in a filter. I would like to add a listbox that contains the ages of these individuals to enable filtering. This means that the default value must somehow find its way to the table. How do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 16:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224780#M77143</guid>
      <dc:creator />
      <dc:date>2010-07-15T16:56:28Z</dc:date>
    </item>
    <item>
      <title>Merging two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224781#M77144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 18:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224781#M77144</guid>
      <dc:creator />
      <dc:date>2010-07-15T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Merging two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224782#M77145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this by joining the two tables together, then re-loading them accounting for nulls in the age field.&lt;/P&gt;&lt;P&gt;You'll need to drop your temp table afterwards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;File1:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name&lt;BR /&gt;Abel&lt;BR /&gt;Jackson&lt;BR /&gt;Peter&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name, Age&lt;BR /&gt;Abel, 36&lt;BR /&gt;Jackson, 46&lt;BR /&gt;];&lt;BR /&gt;SecondLoad:&lt;BR /&gt;LOAD&lt;BR /&gt;Name,&lt;BR /&gt;IF(isnull(Age), 18, Age) AS Age&lt;BR /&gt;RESIDENT File1;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 19:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224782#M77145</guid>
      <dc:creator />
      <dc:date>2010-07-15T19:52:11Z</dc:date>
    </item>
    <item>
      <title>Merging two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224783#M77146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!! It works perfectly okay. What I need to do now is apply the script to the real problem that I have and I have no doubt that it will work perfectly there. My man! Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 07:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224783#M77146</guid>
      <dc:creator />
      <dc:date>2010-07-16T07:29:29Z</dc:date>
    </item>
    <item>
      <title>Merging two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224784#M77147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works beautifully!! Thank you very much, you're the man.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 07:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-two-tables/m-p/224784#M77147</guid>
      <dc:creator />
      <dc:date>2010-07-16T07:32:05Z</dc:date>
    </item>
  </channel>
</rss>

