<?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 2 tables and put non-matching results? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248492#M1189668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for posting the possible answer for me but unfortunately, I am running personal edition of QlikView and I cannot open your attached file. If it is not too much, will you be able to put it on txt file with brief explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 20:53:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-04T20:53:02Z</dc:date>
    <item>
      <title>How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248490#M1189666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really new to the community and really new to 'coding' I have basic comcept of programing (pascal) and that's about it.&lt;/P&gt;&lt;P&gt;I find QlikView very intuitive and brilliant and want to learn more about it.&lt;/P&gt;&lt;P&gt;I would like to compare the 2 tables in excel spreadsheet but pull the records that does not match each according to primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 3px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 7&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;table 1&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;table 2&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;String&lt;/TD&gt;&lt;TD&gt;Extra 1&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;String&lt;/TD&gt;&lt;TD&gt;Extra 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;K&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;76&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;323&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;76&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&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;in above table, I want to compare the table 1 and 2 by column 'Number' and pull the rows that does not match.&lt;/P&gt;&lt;P&gt;Can please someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 00:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248490#M1189666</guid>
      <dc:creator />
      <dc:date>2011-08-04T00:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248491#M1189667</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;Plz find the attachment.&lt;/P&gt;&lt;P&gt;Hope u find ur Solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 04:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248491#M1189667</guid>
      <dc:creator />
      <dc:date>2011-08-04T04:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248492#M1189668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for posting the possible answer for me but unfortunately, I am running personal edition of QlikView and I cannot open your attached file. If it is not too much, will you be able to put it on txt file with brief explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 20:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248492#M1189668</guid>
      <dc:creator />
      <dc:date>2011-08-04T20:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248493#M1189669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here's an example script doing similar to what you're looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,'Table 1' as Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OrderItem, Customer, Amount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI1, Ann, 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI2, Bob, 600&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI3, Charlie, 2000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI4, Dennis, 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI6, Fred, 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CONCATENATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,'Table 2' as Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OrderItem, Customer, Amount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI2, Bobby, 600&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI3, Charlie, 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI4, Dennis, 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI5, Erin, 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OI6, Fred, 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INNER JOIN (Table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE "Only in One Table?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; OR&amp;nbsp; "Customer Different?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; OR&amp;nbsp; "Amount Different?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OrderItem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(count(OrderItem)&amp;lt;2,-1) as "Only in One Table?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(maxstring(Customer)&amp;lt;&amp;gt;minstring(Customer),-1) as "Customer Different?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(max(Amount)&amp;lt;&amp;gt;min(Amount),-1) as "Amount Different?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;GROUP BY OrderItem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both source tables are concatenated into the same final table, just with a "Table" field identifying the source.&amp;nbsp; Then we load another table keyed and grouped by order item, the key we want to compare rows for.&amp;nbsp; Since we're grouping, we can compare the values from both tables with aggregation expressions like min() and max().&amp;nbsp; Finally we inner join this new table back to the first, though with a preceding load to save time and space.&amp;nbsp; The inner join eliminates any rows that don't have any differences.&amp;nbsp; You could keep them if you wanted and set an overall "Row Different?" flag using the current WHERE logic for this inner join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the application, we can calculate some things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Number of Records with Differences = count(distinct OrderItem)&lt;BR /&gt;Records in Only One Table = count("Only in One Table?")&lt;BR /&gt;Customer Differences = count("Customer Different?")/2&lt;BR /&gt;Amount Differences = count("Amount Different?")/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also make a chart that highlights the differences.&amp;nbsp; Make a straight table with OrderItem, Table, Customer and Amount as dimensions.&amp;nbsp; No expressions, and remove the checkmark that suppresses zero values.&amp;nbsp; Now set a background color expression for every dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;OrderItem = if("Only in One Table?",lightgray())&lt;BR /&gt;Table = if("Only in One Table?",lightgray())&lt;BR /&gt;Customer = if("Customer Different?",lightgray())&lt;BR /&gt;Amount = if("Amount Different?",lightgray())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; The chart looks like this.&amp;nbsp; If the record is only in one table, the key and the table are highlighted.&amp;nbsp; If in both tables, all field differences are highlighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="HighlightDifferences.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/6288_HighlightDifferences.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 21:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248493#M1189669</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-04T21:25:18Z</dc:date>
    </item>
    <item>
      <title>How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248494#M1189670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Number,&lt;/P&gt;&lt;P&gt;Number as Number1,&lt;/P&gt;&lt;P&gt;string as string1,&lt;/P&gt;&lt;P&gt; Extra1&lt;/P&gt;&lt;P&gt;from Table1.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Number,&lt;/P&gt;&lt;P&gt;Number as Number2,&lt;/P&gt;&lt;P&gt;string as string2,&lt;/P&gt;&lt;P&gt; Extra2&lt;/P&gt;&lt;P&gt;from Table2.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading it,take a Straight Table.&lt;/P&gt;&lt;P&gt;Dimension:Number&lt;/P&gt;&lt;P&gt;Expression:if(Number=Number1 and Number=Number2,'match','Nomatch')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 17:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248494#M1189670</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-08-06T17:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248495#M1189671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply, however your solution were not able to bring the information that were not matching from both tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 23:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248495#M1189671</guid>
      <dc:creator />
      <dc:date>2011-08-10T23:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248496#M1189672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for the very late reply and very thank you for the answer that I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 23:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248496#M1189672</guid>
      <dc:creator />
      <dc:date>2011-08-10T23:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248497#M1189673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Can you please help me out in below post. Basically I would like to highlight what is new in new hierarchy. It would be really great if you can help me out here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/114476"&gt;Compare the 2 list boxes which contain hierarchy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Apr 2014 17:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248497#M1189673</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-04-20T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248498#M1189674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do I need to use inline function? How are you supposed to know the fields before hand and what if the table is updated in the future. I am tired of googling out to find a proper solution to this. Sorry to be harsh but I feel its so much complex in Qlikview I know the logic in SQL for this but due to the limitations of Qlikview I cannot find a proper solution.&lt;/P&gt;&lt;P&gt;And your solution is difficult to understand since you haven't taken the names of Field same as those to what the Question has. A proper solution to this without using the INLINE would be really helpful. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 15:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248498#M1189674</guid>
      <dc:creator />
      <dc:date>2016-04-01T15:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248499#M1189675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like you want a much broader solution, not "I want to compare this specific table and these specific fields", but "I want an app where I can just give it two data sources to compare, tell it the key field or fields, and it loads all fields from both data sources, then builds a chart that highlights the differences." It also seems like you think that's the only proper solution, and that I owe it to you to code the app for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand your frustration, but I'm not your employee, I didn't cause your problem, and being harsh with me is counter-productive. Nobody owes you a solution. Anyone here who might help you is just someone like you that happens to like to help people in their spare time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, this DOES sound like a very interesting challenge, and I think I know how I'd approach it. For the script, there are functions that let you identify the fields in a table. I'm sure there's a way to loop through those fields and build the necessary data structures. For the chart, I'm sure there's a way to write a macro to add all the fields and do the highlighting. But it would quite a bit more complicated than the solution I posted above, even if it vaguely resembled it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing I'd do is search around the Internet to see if someone else already wrote such an app. You say you're tired of googling, so maybe it doesn't exist, but I'd check &lt;A href="http://robwunderlich.com/"&gt;robwunderlich.com &lt;/A&gt;for the QlikView Cookbook and QlikView Components. I've worked with &lt;A _jive_internal="true" href="https://community.qlik.com/people/rwunderlich"&gt;Rob&lt;/A&gt;, and I am unashamed to say that he is a better QlikView expert than I'll ever be. If not there, I'd be looking around the blogs of other experts, and searching through the forum of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm guessing there's no such app. I'm guessing it would take me three to five days to code such an app. And I just don't have that kind of time to donate. I have a job. I'm behind in the projects they pay me for. But if someone has time to donate, and these hints are enough to put them on the right path, or they have better ideas, it might be a nice app for the Qlik community to have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some things QlikView is good at. Some things require complex solutions that push the boundaries of its capabilities. This seems to be an example of the latter - QlikView was just not designed to compare two tables and tell you the non-matching results. That just isn't its function, not its strength. I'm sorry if you find that frustrating, but you're trying to hammer a nail with a screwdriver - you can do it, but there's probably a better way. Perhaps there's a better tool out there for this need than QlikView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 17:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248499#M1189675</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-01T17:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248500#M1189676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You read my mind! As I said before I am sorry to honest but yes you are exactly right that Qlikview isn't designed to make such comparisons. I am familiar of JAVA and SQL Server and this tool is totally new thing for me. Like JAVA or any other programming language, Qlikview cannot be bent as and how you want sadly. I am currently on the job training for Qlikview only and Qlikview 11 for Developers has really helped me know how the tool works in a very short time. I really like the associativity power of this tool to make very fast analysis unlike other tools which use a drill down approach but sadly I was accustomed to programming in Java and likewise and at times I feel weak when I cannot accomplish things in a simple way. And another thing is finding a proper solution is difficult for this tool since there are not so many people as there are on Stack Overflow which I used to solve any programming doubts. But thanks for making it clear to me. As a fresher in this tool, I want to move fast but I guess I'll have to rattle the cage of my mind to find those answers or leave those questions unanswered. Again sorry if was being harsh or rude &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 17:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248500#M1189676</guid>
      <dc:creator />
      <dc:date>2016-04-01T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248501#M1189677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am great admirer of your solutions in Qlikview and QlikSense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have some similar requirements where I need to build a solution of data comparison from 2 different systems. Its basically a data migration from 2 systems. The data from system A getting updated in System B. The extract from System A extract will be delta on daily basis and need to be compared with System B data which need to be in Sync. There are chances that multiple fields may have wrongly updated or missed during the course of migration to system B. I need to develop an app which compare the data mismatch from Stem B wrt to system A. There may be chances that 100 records sent from Sys A and only 70 records getting updated. And next day after the data fix, there may 2nd day data plus the fixed data gets updated in System B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest the best approach which can help me getting this developed in QlikSense. I believe, if its the same number of records and same records gets into both system with unique transaction id, we can compare one to one in same row. But id there is missing records or more records, I doubt over the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 13:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248501#M1189677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-17T13:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248502#M1189678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the solution here does highlight rows missing from one or the other table, but I don't know if this sort of script and table works in QlikSense. If not, I won't be much help, as I've not played around with QlikSense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248502#M1189678</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-06-20T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248503#M1189679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way to do this would be to load the data from both the sources in to one application (QVF/QVW) and have a field to differentiate data from both sources. In this way you will be able to leverage the power of the Qlik associative engine and also find the missing information you are looking for simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248503#M1189679</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-06-21T12:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248504#M1189680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I need same, but using NOT two separate files, but merged in one cube using load with * :&amp;nbsp; C:\Users\...\orders_*.xlsx&lt;/P&gt;&lt;P&gt;so how to mark PO numbers not matching = POs added in file in 0628?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248504#M1189680</guid>
      <dc:creator />
      <dc:date>2016-06-28T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248505#M1189681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John Witherspoon - this is exactly what i was looking for!&lt;/P&gt;&lt;P&gt;This would be really good as a tutorial &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248505#M1189681</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-09-01T23:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248506#M1189682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I have long table with lots of data loading from Excel file.. what would be the script than?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 04:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/248506#M1189682</guid>
      <dc:creator>swiftfahad</dc:creator>
      <dc:date>2018-09-06T04:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 tables and put non-matching results?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/1743440#M1189683</link>
      <description>&lt;P&gt;Hi johnw,&lt;/P&gt;&lt;P&gt;i have found your comparing from 2 different qvd useful, however i have a use case where i have to retain the data after comparing.&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-retain-data-from-a-previous-load-to-show-trends/td-p/139243" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-retain-data-from-a-previous-load-to-show-trends/td-p/139243&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;it is pretty similar to this link above. Please do let me know if there are any work around for this use case. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 07:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-2-tables-and-put-non-matching-results/m-p/1743440#M1189683</guid>
      <dc:creator>Drewster</dc:creator>
      <dc:date>2020-09-14T07:12:36Z</dc:date>
    </item>
  </channel>
</rss>

