<?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: Compare values in the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367547#M823468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output? Can you share some sample data rather than image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 13:49:33 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-07-25T13:49:33Z</dc:date>
    <item>
      <title>Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367545#M823466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I have the table as shown below,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="171314" alt="Screenshot_17.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171314_Screenshot_17.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I want to create a unique key for the customers for the columns (FieldName, Data type, Min Occurs, Max Occurs, M/C/O and Length) using Autonumber function in the script as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Autonumber(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FieldName&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Data type]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt; Min Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Max Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;M/C/O]&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Length) as UniqueKey&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Based on these keys, I need to compare and the store the matched and not matched values in a table based on the unique column Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out to achieve this by script wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bose.&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/Compare-values-in-the-same-table/m-p/1367545#M823466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367546#M823467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aircode:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15009901414043141 jive_text_macro" jivemacro_uid="_15009901414043141" modifiedtitle="true"&gt;
&lt;P&gt;OldData:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Autonumber(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FieldName&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Data type]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt; Min Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Max Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;M/C/O]&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Length) as UniqueKey,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NewData:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;NOCONCATENATE LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;IF(EXISTS(UniqueKey, &lt;STRONG&gt;Autonumber(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FieldName&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Data type]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt; Min Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Max Occurs]&amp;amp;[&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;M/C/O]&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Length),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;&lt;STRONG&gt;'Known', 'New')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS EntryCheck,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Thereafter you may filter the new list for the field "EntryCheck" and STORE into a QVD or as csv-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367546#M823467</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-07-25T13:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367547#M823468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output? Can you share some sample data rather than image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367547#M823468</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-07-25T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367548#M823469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached the sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367548#M823469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-25T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367549#M823470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Expected Output:&lt;/P&gt;&lt;P&gt;1. if customer, Addivant gets selected, No fields of Addivant exactly matched with Cargosmart in that combination&lt;/P&gt;&lt;P&gt;but 4 fields of Addivant exactly matched with Hapag Lloyd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output I'm expecting...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367549#M823470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-25T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367550#M823471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter. But I need this to split up the matched count based on the customers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367550#M823471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-25T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367551#M823472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;Can I make a couple of suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;P&gt;Autonumber(FieldName&amp;amp;[Data type]&amp;amp;[ Min Occurs]&amp;amp;[Max Occurs]&amp;amp;[M/C/O]&amp;amp;Length) as UniqueKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autonumber(FieldName &amp;amp; '|' &amp;amp; [Data type] &amp;amp; '|' &amp;amp; [ Min Occurs] &amp;amp; '|' &amp;amp; [Max Occurs] &amp;amp; '|' &amp;amp; [M/C/O]&amp;amp;Length,'UniqueKey') as UniqueKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '|' character is useful here. &lt;/P&gt;&lt;P&gt;'AB' &amp;amp; C' = 'ABC' = 'A' &amp;amp; 'BC' &lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;'AB' &amp;amp; '|' &amp;amp; 'C' = 'AB|C' &lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'A' &amp;amp; '|' &amp;amp; 'BC' = 'A|BC'&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;also adding the text parameter &lt;SPAN style="font-size: 13.3333px;"&gt;'UniqueKey' means you can use a different autonumber function elsewhere in your script and if you give the second one a different text parameter they won't be mixed up together during script execution.&lt;/SPAN&gt;&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;Cheers&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;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367551#M823472</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-25T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367552#M823473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I want this comparison of combination to be performed based on the customers. But this is not as expected. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 14:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-values-in-the-same-table/m-p/1367552#M823473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-25T14:52:43Z</dc:date>
    </item>
  </channel>
</rss>

