<?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: Need to compare values in two columns in same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323724#M821517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Tesesco's solution after cleaning all the non alphanumeric characters and then performing the match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(New = Old, 'ExactMatch', 'SubSet') as Result,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(New &amp;lt;&amp;gt; Old, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(len(Old) &amp;gt; Len(New), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chr(39) &amp;amp; Replace(Old,New,'') &amp;amp; chr(39) &amp;amp; ' removed',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Added ' &amp;amp; chr(39) &amp;amp; Replace(New,Old,'') &amp;amp; chr(39))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as Discrepancy;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; KeepChar(Lower(OLD_VALUE), 'abcdefghijklmnopqrstuvwxyz0123456789') as Old,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; KeepChar(Lower(NEW_VALUE), 'abcdefghijklmnopqrstuvwxyz0123456789') as New&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 09:16:56 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-08-01T09:16:56Z</dc:date>
    <item>
      <title>Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323718#M821511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Helllo all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I have a table with two columns ' Old address' and 'New address'. I need to compare these values and identify it they are 100 % mismatch or new address is subset of old address ?. In case there is addition of new character or deletion of existing character, then those needs to be tracked in last column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Please suggest. Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171986_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323718#M821511</guid>
      <dc:creator>onkarkulkarni</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323719#M821512</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;&lt;EM&gt;Load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(New=Old, 'ExactMatch','SubSet') as Result,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(New&amp;lt;&amp;gt;Old,If(len(Old)&amp;gt;Len(New),chr(39)&amp;amp; Replace(Old,New,'')&amp;amp;chr(39)&amp;amp;' removed','Added '&amp;amp;chr(39)&amp;amp;Replace(New,Old,'')&amp;amp;chr(39))) as Discrepancy&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change field name to yours.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171987_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323719#M821512</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-01T07:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323720#M821513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could be useful: &lt;A href="https://community.qlik.com/thread/130449"&gt;Fuzzy Matching/Joining&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323720#M821513</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-08-01T07:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323721#M821514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. I have tried implementing your solution . However for few scenario's its not working. May I know the role of Chr(39) ?&amp;nbsp; Please find ticked records where the results are not as expected.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172003_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323721#M821514</guid>
      <dc:creator>onkarkulkarni</dc:creator>
      <dc:date>2017-08-01T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323722#M821515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These values actually neither match nor become subset. If you have this third possibility too, you have to work a bit more on script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323722#M821515</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-01T08:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323723#M821516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; If( Result='SubSet',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; If(New&amp;lt;&amp;gt;Old,If(len(Old)&amp;gt;Len(New),chr(39)&amp;amp; Replace(Old,New,'')&amp;amp;chr(39)&amp;amp;' removed','Added '&amp;amp;chr(39)&amp;amp;Replace(New,Old,'')&amp;amp;chr(39)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ) as Discrepancy;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; If(New=Old, 'ExactMatch',If(Index(Old,New) or Index(New,Old),'SubSet', 'NotEvenSubset')) as Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Old, New&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Abc, Abc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Abcc, Abc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Bcd, ABcd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;XXX, XXYY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;IMG __jive_id="172013" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172013_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;And yes, chr(39) is for inverted comma (')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323723#M821516</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-01T09:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323724#M821517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Tesesco's solution after cleaning all the non alphanumeric characters and then performing the match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(New = Old, 'ExactMatch', 'SubSet') as Result,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(New &amp;lt;&amp;gt; Old, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(len(Old) &amp;gt; Len(New), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chr(39) &amp;amp; Replace(Old,New,'') &amp;amp; chr(39) &amp;amp; ' removed',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Added ' &amp;amp; chr(39) &amp;amp; Replace(New,Old,'') &amp;amp; chr(39))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as Discrepancy;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; KeepChar(Lower(OLD_VALUE), 'abcdefghijklmnopqrstuvwxyz0123456789') as Old,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; KeepChar(Lower(NEW_VALUE), 'abcdefghijklmnopqrstuvwxyz0123456789') as New&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323724#M821517</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-08-01T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323725#M821518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for quick work around.&lt;/P&gt;&lt;P&gt;Can we have more details for 'Notevensubset' records as they are also more of sub sets only with few character changes.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172015_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;In above record '-' is removed in new address. so can we identify such character discrepancies ?&lt;/P&gt;&lt;P&gt;and sorry for asking you again, may I know importance of Char (39) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323725#M821518</guid>
      <dc:creator>onkarkulkarni</dc:creator>
      <dc:date>2017-08-01T09:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare values in two columns in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323726#M821519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Chr(39) means single quote&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 11:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-compare-values-in-two-columns-in-same-table/m-p/1323726#M821519</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2017-08-01T11:11:45Z</dc:date>
    </item>
  </channel>
</rss>

