<?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 Compare two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421925#M428854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some sample data. What I am trying to do is if the two fields are equal, i.e. field 1 = field 2, I then want to see if any of the values in Compare are also in Field 1. This is id dependant.&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Id, Field1,&lt;/P&gt;&lt;P&gt;A, 5&lt;/P&gt;&lt;P&gt;A, 10 &lt;/P&gt;&lt;P&gt;A, 15&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;Field2, Compare&lt;/P&gt;&lt;P&gt;20, 5&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So in this case I can see 20 in field1 = 20 in field 2, AND 5 in Compare = 5 in Field 1. I would want to return this result and not others. It is important to also identify that 20 was the cause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Been racking my brain on this all day. Appreciate the help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 20:03:10 GMT</pubDate>
    <dc:creator>cbushey1</dc:creator>
    <dc:date>2017-10-09T20:03:10Z</dc:date>
    <item>
      <title>Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421925#M428854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some sample data. What I am trying to do is if the two fields are equal, i.e. field 1 = field 2, I then want to see if any of the values in Compare are also in Field 1. This is id dependant.&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Id, Field1,&lt;/P&gt;&lt;P&gt;A, 5&lt;/P&gt;&lt;P&gt;A, 10 &lt;/P&gt;&lt;P&gt;A, 15&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;Field2, Compare&lt;/P&gt;&lt;P&gt;20, 5&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;20, 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So in this case I can see 20 in field1 = 20 in field 2, AND 5 in Compare = 5 in Field 1. I would want to return this result and not others. It is important to also identify that 20 was the cause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Been racking my brain on this all day. Appreciate the help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421925#M428854</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2017-10-09T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421926#M428855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Id, Field1&lt;/P&gt;&lt;P&gt;A, 5&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 15&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;LOAD Recno() as ListID, * INLINE [&lt;/P&gt;&lt;P&gt;Field2, Compare&lt;/P&gt;&lt;P&gt;20, 5&lt;/P&gt;&lt;P&gt;20, 7&lt;/P&gt;&lt;P&gt;20, 9&lt;/P&gt;&lt;P&gt;20, 11&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD * Resident List;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Id Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSS:&lt;/P&gt;&lt;P&gt;CrossTable (Source, Field1,2)&lt;/P&gt;&lt;P&gt;LOAD ListID, Id, Field2, Compare&lt;/P&gt;&lt;P&gt;RESIDENT TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN (CROSS)&lt;/P&gt;&lt;P&gt;LOAD * Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN (List)&lt;/P&gt;&lt;P&gt;LOAD If(Count(ListID)=2,ListID) as ListID,&amp;nbsp; Id&lt;/P&gt;&lt;P&gt;Resident CROSS&lt;/P&gt;&lt;P&gt;GROUP BY ListID, Id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES TMP, CROSS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421926#M428855</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-09T20:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421927#M428856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldnt have thought to use the cross table technique but when I applied this to my actual data set it seemed to error out. It would seem that the cartesian product of joining the ID field is too much for qlik. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me elaborate more on my request and maybe you would have other ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table one represents IDs and their associated codes (field1). Each ID and code (field1) relationship is unique in that it will not be repeated. Table two has two columns, codes (field 2) and compare.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the code (field1) from table one matches a code in table 2 (field2) then I need to see if any of the compare codes match a code (field 1) but only where they share the same ID. So in the scenario above, if table 2 had 20, 3 as a record it shouldnt be returned in the final results since 3 is only a code for B and not for A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that is enough context and if it makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to give this some more thought today but would appreciate anything you come up with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421927#M428856</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2017-10-10T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421928#M428857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly does the error occur in your setup (I assume the script I've posted above does run on your side, right?)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give some numbers, how many rows each of your tables show and how many distinct values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you just missed a proper key for the joins, so if possible, post a small sample set of data or at least your current script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421928#M428857</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-10T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421929#M428858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It fails here:&lt;/P&gt;&lt;P&gt;join (TMP)&lt;/P&gt;&lt;P&gt;Load Distinct ID RESIDENT INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error just says user cancelled action but I didnt click on anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input = 600k records&lt;/P&gt;&lt;P&gt;List = 300k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I expect these numbers to get larger as our data set grows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421929#M428858</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2017-10-10T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421930#M428859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chase,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TempSample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Id, Field1&lt;BR /&gt; A, 15&lt;BR /&gt; A, 10 &lt;BR /&gt; A, 5&lt;BR /&gt; A, 20&lt;BR /&gt; B, 2&lt;BR /&gt; B, 3&lt;BR /&gt; ]&lt;/SPAN&gt;;&lt;BR /&gt; Sample:&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;NoConcatenate&lt;/SPAN&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; TempSample&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Id&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Field1&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; TempSample;&lt;BR /&gt; &lt;BR /&gt; List:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; Field2,Compare,&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Lookup&lt;/SPAN&gt;('Field1','Id',&lt;SPAN style="color: #800000;"&gt;F&lt;/SPAN&gt;,'Sample') = &lt;SPAN style="color: #800000;"&gt;Compare&lt;/SPAN&gt;,1) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Flag&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;Lookup&lt;/SPAN&gt;('Id','Field1',&lt;SPAN style="color: #800000;"&gt;Field2&lt;/SPAN&gt;,'Sample') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;F&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Field2, Compare&lt;BR /&gt; 20, 7&lt;BR /&gt; 20, 5&lt;BR /&gt; 20, 9&lt;BR /&gt; 20, 11&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179144_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421930#M428859</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-10-10T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421931#M428860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't really Need a full outer JOIN here, if this may causes the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try replacing the TMP table LOAD with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; TMP:&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; List;&lt;BR /&gt;&amp;nbsp; &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;&lt;BR /&gt;&amp;nbsp; &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;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Field2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; INPUT; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421931#M428860</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-10T14:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421932#M428861</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;Can You Please try this. Attached is the qvw. try changing the value and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Id, Field1&lt;/P&gt;&lt;P&gt;A, 5&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 15&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; * INLINE [&lt;/P&gt;&lt;P&gt;Field2, Compare&lt;/P&gt;&lt;P&gt;20, 5&lt;/P&gt;&lt;P&gt;20, 7&lt;/P&gt;&lt;P&gt;20, 9&lt;/P&gt;&lt;P&gt;20, 11&lt;/P&gt;&lt;P&gt;3, 2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load distinct Id ,Field2 as sw1&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Match(Field1,Field2)&amp;gt;0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Id,sw1 as Field1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Field1=Compare;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop TABLE INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421932#M428861</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-10T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421933#M428862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. I managed to get this code to work with my dataset. Although the lookup function is slow given my volume of data (25 mins locally, 4 minutes on server) I think it will work. I looked at switching that function out for the map/apply map however I think it loses some of the connections I was trying to create between Id and codes that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421933#M428862</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2017-10-11T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421934#M428863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 17:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421934#M428863</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-11T17:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421935#M428864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay but I hadn't tried your suggestion as I was working each suggestion in the order they came in. After reviewing your suggestion, it would seem it doesn't quite return the results I was expecting. Using the example code you provided, the results only include Id and field1 or A and 20. The expected results should be ID = A, field 1 = 20, and 'some name' = 5. The point was to see that 5 was also a match in field 1 so that is why it should be returned separately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for putting some thought and effort into my problem though, I truly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 00:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421935#M428864</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2017-10-12T00:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421936#M428865</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;i thought you only need ID, Field1. I am happy that you found your solution. Still if you just add "compare" in the last table&amp;nbsp; it will show that too. I have modified that and changes are in red. Please find the attached. Try it out and see if it helps you or optimizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Id, Field1&lt;/P&gt;&lt;P&gt;A, 5&lt;/P&gt;&lt;P&gt;A, 10&lt;/P&gt;&lt;P&gt;A, 15&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 2&lt;/P&gt;&lt;P&gt;B, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;List:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; * INLINE [&lt;/P&gt;&lt;P&gt;Field2, Compare&lt;/P&gt;&lt;P&gt;20, 5&lt;/P&gt;&lt;P&gt;20, 7&lt;/P&gt;&lt;P&gt;20, 9&lt;/P&gt;&lt;P&gt;20, 11&lt;/P&gt;&lt;P&gt;3, 2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load distinct Id ,Field2 as sw1&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Match(Field1,Field2)&amp;gt;0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Id,sw1 as Field1,&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Compare as "Some field"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Field1=Compare;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop TABLE INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 06:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/1421936#M428865</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-12T06:46:44Z</dc:date>
    </item>
  </channel>
</rss>

