<?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 Condition in Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337237#M1173465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Masha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems to be exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 11:21:45 GMT</pubDate>
    <dc:creator>mazacini</dc:creator>
    <dc:date>2012-06-07T11:21:45Z</dc:date>
    <item>
      <title>Condition in Join</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337234#M1173462</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 Trans table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 216pt; border-collapse: collapse;" width="288"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="width: 54pt; height: 14.25pt;" width="72"&gt;Month&lt;/TD&gt;&lt;TD style="width: 54pt;" width="72"&gt;InvNo&lt;/TD&gt;&lt;TD style="width: 54pt;" width="72"&gt;Item&lt;/TD&gt;&lt;TD style="width: 54pt;" width="72"&gt;Val&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="height: 14.25pt;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl65"&gt;1&lt;/TD&gt;&lt;TD class="xl65"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="height: 14.25pt;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl65"&gt;2&lt;/TD&gt;&lt;TD class="xl65"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="height: 14.25pt;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl65"&gt;3&lt;/TD&gt;&lt;TD class="xl65"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Rate table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 108pt; border-collapse: collapse;" width="144"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="width: 54pt; height: 14.25pt;" width="72"&gt;Month&lt;/TD&gt;&lt;TD style="width: 54pt;" width="72"&gt;Rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="height: 14.25pt;"&gt;Jan&lt;/TD&gt;&lt;TD align="right"&gt;0.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.25pt;"&gt;&lt;TD height="19" style="height: 14.25pt;"&gt;Feb&lt;/TD&gt;&lt;TD align="right"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to join the Rate field in the Rate table to the Trans table for Item equal A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LEFT Join (Trans)&lt;BR /&gt;&lt;BR /&gt;LOAD IMonth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Resident Rate &lt;BR /&gt;&lt;BR /&gt;where Item='A' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 07:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337234#M1173462</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2012-06-05T07:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Condition in Join</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337235#M1173463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot give any conditions on which the join will take place: 'where item = A' does not work.&lt;/P&gt;&lt;P&gt;The join will happen on shared columns, in this case month. This will result in a table, which you can filter afterwards, e.g. by excluding rows with item='A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to filter the Trans table BEFORE joining it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trans_Joined:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;InvNo,&lt;/P&gt;&lt;P&gt;Item,&lt;/P&gt;&lt;P&gt;Val&lt;/P&gt;&lt;P&gt;Resident Trans&lt;/P&gt;&lt;P&gt;where Item = 'A';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;Rate&lt;/P&gt;&lt;P&gt;Resident Rate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Trans;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 07:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337235#M1173463</guid>
      <dc:creator />
      <dc:date>2012-06-05T07:52:21Z</dc:date>
    </item>
    <item>
      <title>Condition in Join</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337236#M1173464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this:&lt;/P&gt;&lt;P&gt;Left Join (Trans)&lt;BR /&gt;Load&lt;BR /&gt;Month,&lt;BR /&gt;Rate,&lt;BR /&gt;'A' as Item&lt;BR /&gt;Resident Rate;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/Masha &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 08:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337236#M1173464</guid>
      <dc:creator>masha-ecraft</dc:creator>
      <dc:date>2012-06-05T08:13:44Z</dc:date>
    </item>
    <item>
      <title>Condition in Join</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337237#M1173465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Masha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems to be exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-in-Join/m-p/337237#M1173465</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2012-06-07T11:21:45Z</dc:date>
    </item>
  </channel>
</rss>

