<?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 Error: Field not found in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178443#M45635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No sweat - it's a very common "mental switch" that every new QV developer goes through, after getting used to the standard SQL logic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;welcome to the club!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 23:54:24 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-12-08T23:54:24Z</dc:date>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178438#M45630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, I can't understand - what's wrong with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;StatDataTmp:&lt;BR /&gt;LOAD Region,&lt;BR /&gt; Plant,&lt;BR /&gt; Duration,&lt;BR /&gt; Sum as PlanCost&lt;BR /&gt;FROM&lt;BR /&gt;[Some.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [SQL Results]);&lt;BR /&gt;&lt;BR /&gt;StatDataByPlant:&lt;BR /&gt;load Plant as Plant,&lt;BR /&gt; sum(PlanCost) as SumPlanCost&lt;BR /&gt;resident StatDataTmp&lt;BR /&gt;group by Plant;&lt;BR /&gt;&lt;BR /&gt;left join (StatDataByPlant)&lt;BR /&gt;load Region,&lt;BR /&gt; Plant,&lt;BR /&gt; Duration,&lt;BR /&gt; PlanCost,&lt;BR /&gt; (PlanCost/SumPlanCost)*100&lt;BR /&gt;resident StatDataTmp;&lt;BR /&gt;&lt;BR /&gt;drop table StatDataTmp;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Exception is "Field not found - &amp;lt;SumPlanCost&amp;gt; ..."&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 01:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178438#M45630</guid>
      <dc:creator />
      <dc:date>2009-12-08T01:55:01Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178439#M45631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You view your "join" load as if it's an SQL join, - expecting fields from both tables to be available... QlikView join works a bit different... You can only use fields from your "source" table, but not from the table that you join to. To make this code work, you need to join the SumPlanCost into the detailed table prior to the final calculation.Join the total, then reload the table and calculate the formula.&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 02:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178439#M45631</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-12-08T02:26:36Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178440#M45632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LOAD statement can only reference fields in a single table - in this case StatDataTmp.&lt;/P&gt;&lt;P&gt;Another approcah would be to do the left join to get all the data into one table and then use another load to create the new field.&lt;/P&gt;&lt;P&gt;RIGHT JOIN (StatDataByPlant) LOAD DISTINCT * (PlanCost/SumPlanCost)*100 AS CostRatio&lt;BR /&gt;RESIDENT StatDataByPlant;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 02:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178440#M45632</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-08T02:28:54Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178441#M45633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;RIGHT JOIN (StatDataByPlant) LOAD DISTINCT * (PlanCost/SumPlanCost)*100 AS CostRatio&lt;BR /&gt;RESIDENT StatDataByPlant;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;doesn't work - the same error.&lt;/P&gt;&lt;P&gt;But if I remove expression with field "SumPlanCost" - all coorrect ...&lt;/P&gt;&lt;P&gt;Working version of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;StatDataTmp:&lt;BR /&gt;LOAD Region,&lt;BR /&gt; Plant,&lt;BR /&gt; Duration,&lt;BR /&gt; Sum AS PlanCost&lt;BR /&gt;FROM&lt;BR /&gt;[Some.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [SQL Results]);&lt;BR /&gt;&lt;BR /&gt;StatDataByPlant:&lt;BR /&gt;LOAD Plant,&lt;BR /&gt; sum(PlanCost) AS SumPlanCost&lt;BR /&gt;RESIDENT StatDataTmp&lt;BR /&gt;GROUP BY Plant;&lt;BR /&gt;&lt;BR /&gt;JOIN(StatDataByPlant)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT StatDataTmp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 22:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178441#M45633</guid>
      <dc:creator />
      <dc:date>2009-12-08T22:20:31Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178442#M45634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Oleg. Really, my understanding of the joins in QV was a little bit wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - legasy of the work with RDBMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 22:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178442#M45634</guid>
      <dc:creator />
      <dc:date>2009-12-08T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178443#M45635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No sweat - it's a very common "mental switch" that every new QV developer goes through, after getting used to the standard SQL logic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;welcome to the club!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 23:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178443#M45635</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-12-08T23:54:24Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178444#M45636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Dmitry wrote:RIGHT JOIN (StatDataByPlant) LOAD DISTINCT * (PlanCost/SumPlanCost)*100 AS CostRatio&lt;BR /&gt;RESIDENT StatDataByPlant&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said in my post (not too clearly I guess), this code gets added &lt;STRONG&gt;after&lt;/STRONG&gt; the JOIN of the two tables. That is, only if you need the calculated field.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 02:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178444#M45636</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-09T02:08:30Z</dc:date>
    </item>
    <item>
      <title>Error: Field not found</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178445#M45637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thanks, Rob - now it's clear for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dmitry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 18:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Field-not-found/m-p/178445#M45637</guid>
      <dc:creator />
      <dc:date>2009-12-09T18:39:28Z</dc:date>
    </item>
  </channel>
</rss>

