<?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 Adding a Column based on Matching Conditions in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413912#M94930</link>
    <description>&lt;P&gt;Hi Qlik Sense Community,&lt;/P&gt;
&lt;P&gt;I hope you're doing well. I'm currently working on a project involving two tables in Qlik Sense, and I could use some assistance with a specific task. Here are the details:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Tables:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Table A:&lt;/STRONG&gt; Contains a single column with both invoice numbers and delivery note (BL) numbers.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table B:&lt;/STRONG&gt; Has two separate columns for invoice numbers and delivery note (BL) numbers.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I need to add a new column to &lt;STRONG&gt;Table A&lt;/STRONG&gt;, let's call it "NewColumn."&lt;/LI&gt;
&lt;LI&gt;"NewColumn" should have values "yes" or "no" based on the following conditions:
&lt;UL&gt;
&lt;LI&gt;If the invoice number in &lt;STRONG&gt;Table A&lt;/STRONG&gt; matches the invoice number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;If the delivery note (BL) number in &lt;STRONG&gt;Table A&lt;/STRONG&gt; matches the delivery note (BL) number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Additionally, when a match is found for the invoice number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;, all associated delivery note (BL) numbers for that invoice in &lt;STRONG&gt;Table B&lt;/STRONG&gt; should also be marked as "yes" in the "NewColumn" of &lt;STRONG&gt;Table A&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How can I achieve this in Qlik Sense script or expressions?&lt;/LI&gt;
&lt;LI&gt;Are there any specific functions or syntax I should be aware of?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Any guidance or examples would be greatly appreciated. Thank you in advance for your assistance!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:05:07 GMT</pubDate>
    <dc:creator>mehdibenayed</dc:creator>
    <dc:date>2024-11-15T21:05:07Z</dc:date>
    <item>
      <title>Adding a Column based on Matching Conditions in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413912#M94930</link>
      <description>&lt;P&gt;Hi Qlik Sense Community,&lt;/P&gt;
&lt;P&gt;I hope you're doing well. I'm currently working on a project involving two tables in Qlik Sense, and I could use some assistance with a specific task. Here are the details:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Tables:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Table A:&lt;/STRONG&gt; Contains a single column with both invoice numbers and delivery note (BL) numbers.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table B:&lt;/STRONG&gt; Has two separate columns for invoice numbers and delivery note (BL) numbers.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I need to add a new column to &lt;STRONG&gt;Table A&lt;/STRONG&gt;, let's call it "NewColumn."&lt;/LI&gt;
&lt;LI&gt;"NewColumn" should have values "yes" or "no" based on the following conditions:
&lt;UL&gt;
&lt;LI&gt;If the invoice number in &lt;STRONG&gt;Table A&lt;/STRONG&gt; matches the invoice number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;If the delivery note (BL) number in &lt;STRONG&gt;Table A&lt;/STRONG&gt; matches the delivery note (BL) number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Additionally, when a match is found for the invoice number in &lt;STRONG&gt;Table B&lt;/STRONG&gt;, all associated delivery note (BL) numbers for that invoice in &lt;STRONG&gt;Table B&lt;/STRONG&gt; should also be marked as "yes" in the "NewColumn" of &lt;STRONG&gt;Table A&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How can I achieve this in Qlik Sense script or expressions?&lt;/LI&gt;
&lt;LI&gt;Are there any specific functions or syntax I should be aware of?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Any guidance or examples would be greatly appreciated. Thank you in advance for your assistance!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413912#M94930</guid>
      <dc:creator>mehdibenayed</dc:creator>
      <dc:date>2024-11-15T21:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Column based on Matching Conditions in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413932#M94931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234129"&gt;@mehdibenayed&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Here's a possible solution:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//Load your B table first, creating a key with invoice numbers and delivery note
TABLE_B:
Load
    [invoice numbers],
    [delivery note],
    [invoice numbers]&amp;amp;[delivery note] as KEY
from your_data;

//Then load your table A, checking that your number exists in the key previously loaded
TABLE_A:
Load
    your_number,
    if(Exists(KEY,your_number),'Yes','No') as NewColumn
from your_data;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_self"&gt;Exists function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pierrick&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413932#M94931</guid>
      <dc:creator>Pierrick</dc:creator>
      <dc:date>2024-02-02T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Column based on Matching Conditions in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413940#M94932</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Table A contains a single column with entries for both invoice numbers and delivery notes, not concatenated&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-a-Column-based-on-Matching-Conditions-in-Qlik-Sense/m-p/2413940#M94932</guid>
      <dc:creator>mehdibenayed</dc:creator>
      <dc:date>2024-02-02T11:30:47Z</dc:date>
    </item>
  </channel>
</rss>

