<?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 Using Table joins to create a formula in Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175288#M43790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I included the quotations in my code, and Field A is indeed a unique key and not used in the final calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 21:13:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-03T21:13:15Z</dc:date>
    <item>
      <title>Using Table joins to create a formula in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175286#M43788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to pull fields from 3 separate tables in my database, and then perform a calculation on these fields (there are 5) within the Load statement.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Field A&lt;/P&gt;&lt;P&gt;Field B&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;Field A&lt;/P&gt;&lt;P&gt;Field C&lt;/P&gt;&lt;P&gt;Field D&lt;/P&gt;&lt;P&gt;Table 3:&lt;/P&gt;&lt;P&gt;Field A&lt;/P&gt;&lt;P&gt;Field E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm doing the following (which I know is wrong)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Join]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Field A,&lt;/P&gt;&lt;P&gt;Field B&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Field A,&lt;/P&gt;&lt;P&gt;Field C,&lt;/P&gt;&lt;P&gt;Field D,&lt;/P&gt;&lt;P&gt;RESIDENT [Table2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Field A,&lt;/P&gt;&lt;P&gt;Field E&lt;/P&gt;&lt;P&gt;RESIDENT [Table 3]&lt;/P&gt;&lt;P&gt;WHERE A &amp;lt; 10;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;A*B*C*D*E as [Result]&lt;/P&gt;&lt;P&gt;RESIDENT [Join]&lt;/P&gt;&lt;P&gt;GROUP BY "Field A";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated! Thank you,&lt;/P&gt;&lt;P&gt;PeterDGA&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 16:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175286#M43788</guid>
      <dc:creator />
      <dc:date>2010-06-03T16:20:08Z</dc:date>
    </item>
    <item>
      <title>Using Table joins to create a formula in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175287#M43789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, your field names need quotes or brakets. Your final outer join has no key field to join on, has the wrong field names, and groups for no apparent reason. Well, I'm assuming that Field A is a unique key. If it isn't, then probably all of your joins are wrong instead of just the last one. But there's no reason you'd be using a unique key in a numeric calculation. I suppose this is just an example, though, so I'll pretend it makes sense that Field A is a unique key AND a value you want to use in a calculation.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN ([Join])&lt;BR /&gt;LOAD&lt;BR /&gt; "Field A"&lt;BR /&gt;,"Field A"*"Field B"*"Field C"*"Field D"*"Field E" as "Result"&lt;BR /&gt;RESIDENT [Join]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 20:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175287#M43789</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-03T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Using Table joins to create a formula in Load</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175288#M43790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I included the quotations in my code, and Field A is indeed a unique key and not used in the final calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 21:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Table-joins-to-create-a-formula-in-Load/m-p/175288#M43790</guid>
      <dc:creator />
      <dc:date>2010-06-03T21:13:15Z</dc:date>
    </item>
  </channel>
</rss>

