<?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: Defining a column for join if it's not null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Defining-a-column-for-join-if-it-s-not-null/m-p/1886536#M1217090</link>
    <description>&lt;P&gt;I found the following solution:&lt;/P&gt;
&lt;P&gt;for all empty capmaign in table_1, I assigned the value "-", so the script finds "-" as the match for join.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 13:46:20 GMT</pubDate>
    <dc:creator>ZimaBlue</dc:creator>
    <dc:date>2022-01-28T13:46:20Z</dc:date>
    <item>
      <title>Defining a column for join if it's not null</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-column-for-join-if-it-s-not-null/m-p/1886055#M1217073</link>
      <description>&lt;P&gt;I have &lt;FONT color="#FF6600"&gt;table_1&lt;/FONT&gt;:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;month_start_date&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;partner&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;campaign&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1-10-2021&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;partner1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;test1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1-5-2021&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;partner2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;test2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and &lt;FONT color="#FF6600"&gt;table_2&lt;/FONT&gt;:&lt;/P&gt;
&lt;TABLE border="1" width="97.92682926829268%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;month_start_date&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;partner&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;campaign&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;money&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1-10-2021&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;partner1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;test1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;1-3-2021&lt;/TD&gt;
&lt;TD height="25px"&gt;partner5&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;1-5-2021&lt;/TD&gt;
&lt;TD height="25px"&gt;partner2&lt;/TD&gt;
&lt;TD height="25px"&gt;test2&lt;/TD&gt;
&lt;TD height="25px"&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;1-11-2021&lt;/TD&gt;
&lt;TD height="25px"&gt;partner10&lt;/TD&gt;
&lt;TD height="25px"&gt;-&lt;/TD&gt;
&lt;TD height="25px"&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What I expect:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- the amount from the money column should be joined to &lt;EM&gt;table_1&lt;/EM&gt; to the &lt;EM&gt;partner-&amp;gt;campaign&lt;/EM&gt; correspondences for those rows where both fields are filled in &lt;EM&gt;table_2&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;- For lines in which in &lt;EM&gt;table_2&lt;/EM&gt; &lt;EM&gt;campaign&lt;/EM&gt; = "&lt;STRONG&gt;-&lt;/STRONG&gt;" I want to see &lt;EM&gt;money&lt;/EM&gt; joined simply by the &lt;EM&gt;partner&lt;/EM&gt; field. I expected that due to the same column name, qlik would be able to figure it out, but it doesn't seem to be able to do that.&lt;/P&gt;
&lt;P&gt;How do I explicitly indicate what to do in this case?&lt;/P&gt;
&lt;P&gt;Now i use just:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#0000FF"&gt;Left Join (table_1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;load [month_start_date], [partner], [campaign], [money] resident table_2;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-column-for-join-if-it-s-not-null/m-p/1886055#M1217073</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-01-27T13:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a column for join if it's not null</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-column-for-join-if-it-s-not-null/m-p/1886536#M1217090</link>
      <description>&lt;P&gt;I found the following solution:&lt;/P&gt;
&lt;P&gt;for all empty capmaign in table_1, I assigned the value "-", so the script finds "-" as the match for join.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-column-for-join-if-it-s-not-null/m-p/1886536#M1217090</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-01-28T13:46:20Z</dc:date>
    </item>
  </channel>
</rss>

