<?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: join based on 2 columns in same table in a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/865#M793218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both fields are in the same table then an IF() statement would suffice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ticket,&lt;/P&gt;&lt;P&gt;AGREEMENT_A,&lt;/P&gt;&lt;P&gt;AGREEMNT_B,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(AGREEMENT_A=AGREEMNT_B.,'A_A') as env,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM XXXXx;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 14:08:56 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2018-01-15T14:08:56Z</dc:date>
    <item>
      <title>join based on 2 columns in same table in a script</title>
      <link>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/864#M793217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table and I want to add column to env=A_A only in case AGREEMENT_A=AGREEMNT_B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190118_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;join&lt;/SPAN&gt;(Fact1)&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;load&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ticket&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;approval_project_url&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;APPROVAL_PROJECT&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;RESIDENT&lt;/SPAN&gt; Fact1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where AGREEMENT_A=AGREEMNT_B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help.&lt;SPAN style="color: #008000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&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/join-based-on-2-columns-in-same-table-in-a-script/m-p/864#M793217</guid>
      <dc:creator>anatle1234</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: join based on 2 columns in same table in a script</title>
      <link>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/865#M793218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both fields are in the same table then an IF() statement would suffice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ticket,&lt;/P&gt;&lt;P&gt;AGREEMENT_A,&lt;/P&gt;&lt;P&gt;AGREEMNT_B,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(AGREEMENT_A=AGREEMNT_B.,'A_A') as env,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM XXXXx;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/865#M793218</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2018-01-15T14:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: join based on 2 columns in same table in a script</title>
      <link>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/866#M793219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik makes joins based on common field names, so you do not need to use any where condition, the important thing are names of those fields. So if you for any reason need to make a join a AGREEMENT_A=AGREEMENT_B you should do&lt;/P&gt;&lt;P&gt;tbl1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;env,&lt;/P&gt;&lt;P&gt;ticke,&lt;/P&gt;&lt;P&gt;AGREEMENT_A&lt;/P&gt;&lt;P&gt;from source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tbl1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;env,&lt;/P&gt;&lt;P&gt;ticke,&lt;/P&gt;&lt;P&gt;AGREEMENT_B as AGREEMENT_A&lt;/P&gt;&lt;P&gt;from source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Juraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-based-on-2-columns-in-same-table-in-a-script/m-p/866#M793219</guid>
      <dc:creator>juraj_misina</dc:creator>
      <dc:date>2018-01-15T14:29:43Z</dc:date>
    </item>
  </channel>
</rss>

