<?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: Check whether value from one table is in another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428022#M1225433</link>
    <description>&lt;P&gt;I think you should link the 2 tables by duplicating the ADDRESS_1 and ADDRESS_2 fields and aliasing the 2nd ADDRESS_1 as ADDRESS and the 2nd ADDRESS_2 as ADDRESS&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_1 as ADDRESS&lt;/P&gt;
&lt;P&gt;FROM &amp;lt;wherever&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2 as ADDRESS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2 in ADDRESS_1&lt;/P&gt;
&lt;P&gt;FROM &amp;lt;wherever&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then a link will form on ADDRESS. Any common ADDRESS in the 2 tables will render 'yes'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 02:24:22 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2024-03-07T02:24:22Z</dc:date>
    <item>
      <title>Check whether value from one table is in another table</title>
      <link>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428018#M1225432</link>
      <description>&lt;P&gt;Hi, kindly advise on how can I get the output in ADDRESS_2 IN ADDRESS_1 column in Table 2 which check whether each row in Table 2 Address is in ADDRESS_1 column in Table 1 and if exist, then display as Yes else display as No.&lt;/P&gt;
&lt;P&gt;I have tried to use SUBSTRINGCOUNT() and it works but as my data in both tables are quite large (More than 2 million records), therefore it will consume a lot of memory and the table will take a long time to load.&lt;/P&gt;
&lt;P&gt;Can advise whether there are other alternatives besides using SUBSTRINGCOUNT() for large data sets.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Table 1&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" height="15px" class="lia-align-center"&gt;&lt;STRONG&gt;ADDRESS_1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;Address A&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;Address B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;Address C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="25px"&gt;Address D&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Table 2&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px" class="lia-align-center"&gt;&lt;STRONG&gt;ADDRESS_2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%" height="25px" class="lia-align-center"&gt;&lt;STRONG&gt;ADDRESS_2 IN ADDRESS_1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Address 1&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Address A&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Address 2&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Address 3&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;Address B&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 07 Mar 2024 01:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428018#M1225432</guid>
      <dc:creator>MCFH93</dc:creator>
      <dc:date>2024-03-07T01:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check whether value from one table is in another table</title>
      <link>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428022#M1225433</link>
      <description>&lt;P&gt;I think you should link the 2 tables by duplicating the ADDRESS_1 and ADDRESS_2 fields and aliasing the 2nd ADDRESS_1 as ADDRESS and the 2nd ADDRESS_2 as ADDRESS&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_1 as ADDRESS&lt;/P&gt;
&lt;P&gt;FROM &amp;lt;wherever&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table2:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2 as ADDRESS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;ADDRESS_2 in ADDRESS_1&lt;/P&gt;
&lt;P&gt;FROM &amp;lt;wherever&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then a link will form on ADDRESS. Any common ADDRESS in the 2 tables will render 'yes'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 02:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428022#M1225433</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2024-03-07T02:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check whether value from one table is in another table</title>
      <link>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428062#M1225434</link>
      <description>&lt;P&gt;test:&lt;/P&gt;
&lt;P&gt;mapping load Address1,'yes' as flag;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;Address1&lt;/P&gt;
&lt;P&gt;AB&lt;/P&gt;
&lt;P&gt;AC&lt;/P&gt;
&lt;P&gt;AD&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;load *,applymap('test',Address2,'No') as newfield;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;Address2&lt;/P&gt;
&lt;P&gt;A1&lt;/P&gt;
&lt;P&gt;AB&lt;/P&gt;
&lt;P&gt;A2&lt;/P&gt;
&lt;P&gt;A3&lt;/P&gt;
&lt;P&gt;AC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428062#M1225434</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-03-07T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check whether value from one table is in another table</title>
      <link>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428102#M1225435</link>
      <description>&lt;P&gt;It could be per exists(), like:&lt;/P&gt;
&lt;P&gt;t1: load ADDRESS1 from X;&lt;/P&gt;
&lt;P&gt;t2: load ADDRESS2, pick(-exists(ADDRESS1, ADDRESS2) + 1, 'no', 'yes') as Flag&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from Y;&lt;/P&gt;
&lt;P&gt;and will perform quite fast.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 08:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-whether-value-from-one-table-is-in-another-table/m-p/2428102#M1225435</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-03-07T08:10:11Z</dc:date>
    </item>
  </channel>
</rss>

