<?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: Common/Uncommon data in Two or more tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516122#M192691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help but Col1 and Col2 are fields of two different tables and those keys are primary foreign keys. I have linked those tables with the help of these columns... Please give me solutions for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 06:07:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-24T06:07:21Z</dc:date>
    <item>
      <title>Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516120#M192689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to find out the common and uncommon data from two fields from two separate tables and then we are trying to add another filed (Flag) to the table which has the maximum values, which will have a value YES if data matches and NO if the data is not matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the data as pasted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;Table1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Table2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Col1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Col2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;U&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;S&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;T&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="149"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" colspan="2" height="20" width="149"&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Col2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;New column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;X&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;U&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;R&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;S&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;T&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516120#M192689</guid>
      <dc:creator />
      <dc:date>2013-10-24T05:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516121#M192690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Col1=Col2, 'Yes', 'No') as NewCol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516121#M192690</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-24T05:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516122#M192691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help but Col1 and Col2 are fields of two different tables and those keys are primary foreign keys. I have linked those tables with the help of these columns... Please give me solutions for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516122#M192691</guid>
      <dc:creator />
      <dc:date>2013-10-24T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516123#M192692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516123#M192692</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-24T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516124#M192693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Col1&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;U&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD Col1 as Col2,if(Exists(Col1),'Yes','No') as flag Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Col1&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;U&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its output is:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;E&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;R&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;No&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;S&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;No&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;T&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;No&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;U&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;X&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Yes&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516124#M192693</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-10-24T06:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516125#M192694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;You can use ApplyMap() for this:&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;Map_TableA:&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;MAPPING LOAD&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&amp;nbsp; Col1,&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&amp;nbsp; 'Yes'&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;From...Table1;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;Table2:&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;LOAD&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&amp;nbsp;&amp;nbsp; Col2,&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&amp;nbsp;&amp;nbsp; ApplyMap('Map_Table1',Col2,'No') AS [New Column]&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;From....Table2;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;Hope this helps,&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Noteworthy; font-size: 18px; font-weight: bold; text-align: -webkit-auto;"&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516125#M192694</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-10-24T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Common/Uncommon data in Two or more tables</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516126#M192695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 09:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Uncommon-data-in-Two-or-more-tables/m-p/516126#M192695</guid>
      <dc:creator />
      <dc:date>2013-10-25T09:12:40Z</dc:date>
    </item>
  </channel>
</rss>

