<?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 Find the records with common key values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091331#M89459</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have two tables with the same column and row names. Except for the keys, the values in the tables are different, so I cannot use INNER JOIN or INNER KEEP. How can I find the records with common key values in both tables and export them separately?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 05:58:33 GMT</pubDate>
    <dc:creator>YHC</dc:creator>
    <dc:date>2023-07-07T05:58:33Z</dc:date>
    <item>
      <title>Find the records with common key values</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091331#M89459</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have two tables with the same column and row names. Except for the keys, the values in the tables are different, so I cannot use INNER JOIN or INNER KEEP. How can I find the records with common key values in both tables and export them separately?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 05:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091331#M89459</guid>
      <dc:creator>YHC</dc:creator>
      <dc:date>2023-07-07T05:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find the records with common key values</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091357#M89463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not a 100% i understand your use case, but i do&lt;/P&gt;
&lt;P&gt;Load the Keys from Table 1,&lt;/P&gt;
&lt;P&gt;Left Join Keys from Table 2,&lt;/P&gt;
&lt;P&gt;Then Resident load where all fields have a value.&lt;/P&gt;
&lt;P&gt;Then use this to load The data from the table with the where exists function.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 06:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091357#M89463</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2023-07-07T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find the records with common key values</title>
      <link>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091452#M89469</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29012"&gt;@Mark_Little&lt;/a&gt; If I have correctly understood, then along these lines.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunPierre_0-1688724380632.png" style="width: 485px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111755i656303870F526E10/image-dimensions/485x342?v=v2" width="485" height="342" role="button" title="BrunPierre_0-1688724380632.png" alt="BrunPierre_0-1688724380632.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MatchedKeys:
LOAD No.
FROM
[...\sum_trial.xlsx]
(ooxml, embedded labels, table is Sheet1);

Concatenate

T2:
LOAD No., 
If(Exists(No.),1) as MatchedFlag
FROM
[...\sum_trial.xlsx]
(ooxml, embedded labels, table is Sheet2);

S1:
LOAD No.,
     Sales, 
     Name, 
     Name2,
     'Sheet 1' as Source
FROM
[...\sum_trial.xlsx]
(ooxml, embedded labels, table is Sheet1);

S2:
LOAD No., 
     Sales, 
     Name, 
     Name2,
     'Sheet 2' as Source
FROM
[...\sum_trial.xlsx]
(ooxml, embedded labels, table is Sheet2);

Left Join
LOAD * Resident MatchedKeys;

NoConcatenate
Final:
LOAD * Resident S1
Where MatchedFlag = 1;

DROP Table MatchedKeys, S1;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-the-records-with-common-key-values/m-p/2091452#M89469</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-07-07T10:09:29Z</dc:date>
    </item>
  </channel>
</rss>

