<?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 2 Tables using certain conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335485#M123703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 11:52:02 GMT</pubDate>
    <dc:creator>ericcosmai</dc:creator>
    <dc:date>2012-08-03T11:52:02Z</dc:date>
    <item>
      <title>Join 2 Tables using certain conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335481#M123699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables that I ultimately want to 'join' when certain criteria are met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;AcctNum,Date,Amount&lt;/P&gt;&lt;P&gt;212,2/2/2012,$50&lt;/P&gt;&lt;P&gt;212,2/5/2012,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;AcctNum,Date,Code,&lt;/P&gt;&lt;P&gt;212,2/2/2012,A25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ultimately, I want to be able to have Table one display the following way &lt;SPAN style="color: #339966;"&gt;(only add code/join when the following is satisfied, when account matches in both tables, the dates are the same and when the amount in Table 1 is not '0' &lt;/SPAN&gt;) but I am not able to do this using a left join:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AcctNum,Date,Amount,Code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;212,2/2/2012,$50,A25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is that i get the following, a code is inserted regarless:&lt;/P&gt;&lt;P&gt;AcctNum,Date,Amount,Code&lt;/P&gt;&lt;P&gt;212,2/2/2012,$50,A25&lt;/P&gt;&lt;P&gt;212,2/5/2012,0,A25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 18:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335481#M123699</guid>
      <dc:creator />
      <dc:date>2012-08-02T18:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 Tables using certain conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335482#M123700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow what I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; AcctNum,Date,Amount&lt;BR /&gt; 212,2/2/2012,$50&lt;BR /&gt; 212,2/5/2012,0&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; AcctNum,Date,Code&lt;BR /&gt; 212,2/2/2012,A25&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Table2)&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcctNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;0;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;RENAME&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table2 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335482#M123700</guid>
      <dc:creator>ericcosmai</dc:creator>
      <dc:date>2012-08-02T19:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 Tables using certain conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335483#M123701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. can i achieve this by joining to Table1 instead of to Table2. I ask this because there are other fields/Rows that I use in Table1 that I think would be lost if i did the join to Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, If Table1 has 1000 rows of data and Table2 has only 100 rows of data that could possibly join, what happens to the other 900 rows of data in Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335483#M123701</guid>
      <dc:creator />
      <dc:date>2012-08-02T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 Tables using certain conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335484#M123702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey man... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the app... take a look....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 20:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335484#M123702</guid>
      <dc:creator>ericcosmai</dc:creator>
      <dc:date>2012-08-02T20:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 Tables using certain conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335485#M123703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 11:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-Tables-using-certain-conditions/m-p/335485#M123703</guid>
      <dc:creator>ericcosmai</dc:creator>
      <dc:date>2012-08-03T11:52:02Z</dc:date>
    </item>
  </channel>
</rss>

