<?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: How to Compare Two Tables with Three Columns to Find Equal Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213822#M388981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; Marco, great job, solved my question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 02:11:31 GMT</pubDate>
    <dc:creator>paulosrl</dc:creator>
    <dc:date>2017-02-06T02:11:31Z</dc:date>
    <item>
      <title>How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213819#M388978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables, each one with three columns (as key) , I woul like to compare two tables to find equal or difrent values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;master:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_BANCO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGENCIA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[MASTER.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is master);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondary:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_BANCO,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGENCIA,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTA&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[SECONDARY.xlsx]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is secondary);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt; table: master&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="205"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="77"&gt;NR_BANCO&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;AGENCIA&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;CONTA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table: secondary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="205"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="77"&gt;NR_BANCO&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;AGENCIA&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;CONTA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="83" style="width: 435px; height: 87px;" width="433"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="77"&gt;NR_BANCO&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;AGENCIA&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;CONTA&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="193"&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Exists only in table Master&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Exists only in table Secondary&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2017 14:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213819#M388978</guid>
      <dc:creator>paulosrl</dc:creator>
      <dc:date>2017-02-04T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213820#M388979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like John demonstrated here?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/32944"&gt;How to compare 2 tables and put non-matching results?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 19:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213820#M388979</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-05T19:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213821#M388980</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;maybe one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248717_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152075_QlikCommunity_Thread_248717_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248717_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/152077_QlikCommunity_Thread_248717_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248717_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152076_QlikCommunity_Thread_248717_Pic2.JPG" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14863332491188867 jive_text_macro" jivemacro_uid="_14863332491188867"&gt;
&lt;P&gt;master:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128(NR_BANCO, AGENCIA, CONTA) as %Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeMasterFact&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="248717" data-objecttype="1" href="https://community.qlik.com/thread/248717"&gt;https://community.qlik.com/thread/248717&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;secondary:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128(NR_BANCO, AGENCIA, CONTA) as %Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as SomeSecondaryFact&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="248717" data-objecttype="1" href="https://community.qlik.com/thread/248717"&gt;https://community.qlik.com/thread/248717&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabResult:&lt;/P&gt;
&lt;P&gt;LOAD %Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_BANCO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGENCIA,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTA,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Master' as SourceTable&lt;/P&gt;
&lt;P&gt;Resident master;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD %Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_BANCO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGENCIA,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTA,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Secondary' as SourceTable&lt;/P&gt;
&lt;P&gt;Resident secondary;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Fields NR_BANCO, AGENCIA, CONTA From master, secondary;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join (tabResult)&lt;/P&gt;
&lt;P&gt;LOAD %Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Exists '&amp;amp;If(Count(DISTINCT SourceTable)=1,'only ')&amp;amp;'in table '&amp;amp;Concat(DISTINCT SourceTable,' and ') as Result&lt;/P&gt;
&lt;P&gt;Resident tabResult&lt;/P&gt;
&lt;P&gt;Group By %Key;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 22:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213821#M388980</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-05T22:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213822#M388981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; Marco, great job, solved my question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 02:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213822#M388981</guid>
      <dc:creator>paulosrl</dc:creator>
      <dc:date>2017-02-06T02:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213823#M388982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;Good to hear that it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your question is answered then p&lt;SPAN style="font-size: 13.3333px;"&gt;lease close your thread &lt;/SPAN&gt;by selecting a correct answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213823#M388982</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-06T20:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compare Two Tables with Three Columns to Find Equal Values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213824#M388983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done ! Thanks !&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Compare-Two-Tables-with-Three-Columns-to-Find-Equal/m-p/1213824#M388983</guid>
      <dc:creator>paulosrl</dc:creator>
      <dc:date>2017-02-06T20:41:11Z</dc:date>
    </item>
  </channel>
</rss>

