<?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 Comparing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304203#M1200576</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 to compare two tables from different sources (textfile, excel file) to see if they match.&lt;BR /&gt;If they don't match I'd like to show the difference in another listbox or with highlighting.... or someting else.&lt;/P&gt;&lt;P&gt;I have a textfile(file1) with data, and an excelfile(file2) with data.&lt;BR /&gt;Most fields are named the same, at least the importent fields that I need to compare.&lt;BR /&gt;I want to make sure that the following fields has the same data in them in both files.&lt;BR /&gt;+ ID_Nr&lt;BR /&gt;+ ID_Name&lt;/P&gt;&lt;P&gt;ID_Name is a string.&lt;BR /&gt;ID_Nr is integer (sometimes starting with one or two '0' zeros)&lt;/P&gt;&lt;P&gt;I need to be able to compare them individually (and display them individually) as well as together.&lt;BR /&gt;I mean compare ID_Nr in both files, display difference and compare ID_Name in both files, display difference.&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Feb 2011 12:53:38 GMT</pubDate>
    <dc:creator>qw_johan</dc:creator>
    <dc:date>2011-02-05T12:53:38Z</dc:date>
    <item>
      <title>Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304203#M1200576</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 to compare two tables from different sources (textfile, excel file) to see if they match.&lt;BR /&gt;If they don't match I'd like to show the difference in another listbox or with highlighting.... or someting else.&lt;/P&gt;&lt;P&gt;I have a textfile(file1) with data, and an excelfile(file2) with data.&lt;BR /&gt;Most fields are named the same, at least the importent fields that I need to compare.&lt;BR /&gt;I want to make sure that the following fields has the same data in them in both files.&lt;BR /&gt;+ ID_Nr&lt;BR /&gt;+ ID_Name&lt;/P&gt;&lt;P&gt;ID_Name is a string.&lt;BR /&gt;ID_Nr is integer (sometimes starting with one or two '0' zeros)&lt;/P&gt;&lt;P&gt;I need to be able to compare them individually (and display them individually) as well as together.&lt;BR /&gt;I mean compare ID_Nr in both files, display difference and compare ID_Name in both files, display difference.&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 12:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304203#M1200576</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-05T12:53:38Z</dc:date>
    </item>
    <item>
      <title>AW:Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304204#M1200577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johan,&lt;/P&gt;&lt;P&gt;there are more than one way. I would prefer using a "not exists". For performance reasons I would do a qualified load from both external resources (if you like, delete them afterwards). Next step is a resident load to get the missing rows. Please take a look at the following code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;QUALIFY *;&lt;BR /&gt;&lt;BR /&gt;textdata:&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;ID, Name&lt;BR /&gt;1, EINS&lt;BR /&gt;2, ZWEI&lt;BR /&gt;3, DREI&lt;BR /&gt;7, SIEBEN&lt;BR /&gt;8, ACHT&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exceldata:&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;ID, Name&lt;BR /&gt;1, Eins&lt;BR /&gt;2, Zwei&lt;BR /&gt;3, Drei&lt;BR /&gt;4, Vier&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MissingInExcel:&lt;BR /&gt;LOAD&lt;BR /&gt; *&lt;BR /&gt;Resident textdata&lt;BR /&gt;Where not Exists(exceldata.ID, textdata.ID);&lt;BR /&gt;&lt;BR /&gt;MissingInText:&lt;BR /&gt;LOAD&lt;BR /&gt; *&lt;BR /&gt;Resident exceldata&lt;BR /&gt;Where not Exists(textdata.ID, exceldata.ID);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 16:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304204#M1200577</guid>
      <dc:creator />
      <dc:date>2011-02-05T16:39:05Z</dc:date>
    </item>
    <item>
      <title>AW:Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304205#M1200578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help, Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 21:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304205#M1200578</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-02-05T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: AW:Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304206#M1200579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland, &lt;/P&gt;&lt;P&gt;Just in relation to your reply to Johan... I'm trying to use the solution you mentioned above where you're using RESIDENT with NOT EXIST. I like the idea but I can't make it work. &lt;/P&gt;&lt;P&gt;What I'm trying to achieve is, get the difference between to datasets. They have identical structure (same columns). I want to compare both and get the difference between them. What is in one table and not in the other. &lt;/P&gt;&lt;P&gt;Here is what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Daily_Dump:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load *&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;From&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;TradeDump.CSV&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Yesterday_Daily_Dump:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load *&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;From&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt;TradeDump.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;MissingInDailyDump:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; Yesterday_Daily_Dump&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;not&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;(MissingInDailyDump&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;.[Transaction Number]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;,Daily_Dump&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;.[Transaction Number]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;store&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; MissingInDailyDump &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; MissingInDailyDump.qvd(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This give me syntax error because it doesn't like "MissingInDailyDump.[Transaction Number]" &lt;/P&gt;&lt;P&gt;If I remove "MissingInDailyDump.", when I run it it throws an error saying it doesn't know Transaction Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 04:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304206#M1200579</guid>
      <dc:creator>drjoffily</dc:creator>
      <dc:date>2011-09-08T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304207#M1200580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Don't worry. I got it working now. It didn't like the "[" around Transaction Number. I changed the name of the column to Transaction_Number and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 06:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304207#M1200580</guid>
      <dc:creator>drjoffily</dc:creator>
      <dc:date>2011-09-08T06:51:22Z</dc:date>
    </item>
    <item>
      <title>AW:Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304208#M1200581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qw_johan,&lt;/P&gt;&lt;P&gt;Marcos,&lt;/P&gt;&lt;P&gt;glad to help you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 17:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304208#M1200581</guid>
      <dc:creator />
      <dc:date>2011-09-13T17:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304209#M1200582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What we can do if we don't have unique fields in both the tables. How can we compare that? please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304209#M1200582</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-04-15T10:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304210#M1200583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "if we don't have unique fields in both the tables"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 11:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304210#M1200583</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2014-04-15T11:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304211#M1200584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Means - "If you dont have the primary key"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 12:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304211#M1200584</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-04-15T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304212#M1200585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the "not exists" is independend of the existance of a primary key field. It works also with non-unique fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, are you able to post some example data or an exam app? This would help the guys here to find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 12:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-data/m-p/304212#M1200585</guid>
      <dc:creator />
      <dc:date>2014-04-15T12:16:51Z</dc:date>
    </item>
  </channel>
</rss>

